-
Notifications
You must be signed in to change notification settings - Fork 863
Composite State Store part 3: Read path implementation #2756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/evm-ss-database
Are you sure you want to change the base?
Conversation
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature/evm-ss-database #2756 +/- ##
===========================================================
+ Coverage 47.78% 47.81% +0.03%
===========================================================
Files 357 357
Lines 34697 34697
===========================================================
+ Hits 16581 16592 +11
+ Misses 16536 16527 -9
+ Partials 1580 1578 -2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Adds CompositeStateStore that routes reads between Cosmos_SS and EVM_SS: - Get/Has: Check EVM_SS first for EVM keys, fallback to Cosmos_SS - Iterator/ReverseIterator: Use Cosmos_SS (source of truth) - Uses commonevm.ParseEVMKey directly for key parsing Write methods delegate to Cosmos_SS only in this PR. Full dual-write implementation in next PR.
b437822 to
f5ac4df
Compare
7271005 to
7ef1b00
Compare
| if s.evmStore != nil && storeKey == evm.EVMStoreKey { | ||
| storeType, strippedKey := commonevm.ParseEVMKey(key) | ||
| if storeType != evm.StoreUnknown { | ||
| db := s.evmStore.GetDB(storeType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we just call EVMStore.Get since EVMStore is supposed to manage all DBs? why do we need to get the actual db from it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for below
Describe your changes and provide context
Testing performed to validate your change