-
Notifications
You must be signed in to change notification settings - Fork 235
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
Problem: memiavl api don't work with FinalizeBlock #1149
Conversation
FinalizeBlock in abci 2.0 need the WorkingHash API. Solution: - redesign the internals APIs to support WorkingHash. instead of exposing a single `Commit` API, now we exposes separate APIs for `ApplyChangeSets` and `Commit`.
for _, store := range rs.stores { | ||
if store.GetStoreType() != types.StoreTypeIAVL { | ||
_ = store.Commit() | ||
} | ||
} |
Check failure
Code scanning / gosec
the value in the range statement should be _ unless copying a map: want: for key := range m Error
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1149 +/- ##
==========================================
+ Coverage 46.43% 46.54% +0.11%
==========================================
Files 105 105
Lines 7859 7923 +64
==========================================
+ Hits 3649 3688 +39
- Misses 3837 3856 +19
- Partials 373 379 +6
|
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.
Confirmed this solve the problem
98e3653
to
777e574
Compare
Signed-off-by: yihuang <[email protected]>
04b26e4
FinalizeBlock in abci 2.0 need the WorkingHash API.
Solution:
Commit
API, now we exposes separate APIs forApplyChangeSets
andCommit
.👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)