-
Notifications
You must be signed in to change notification settings - Fork 240
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 don't support CacheMultiStoreWithVersion
#1114
Conversation
`CacheMultiStoreWithVersion` is needed for grpc query service and cosmwasm snapshotting.
Signed-off-by: yihuang <huang@crypto.com>
for k, store := range rs.stores { | ||
if store.GetStoreType() != types.StoreTypeIAVL { | ||
stores[k] = store | ||
} | ||
} |
Check failure
Code scanning / gosec
the value in the range statement should be _ unless copying a map: want: for key := range m
return rs.CacheMultiStore(), nil | ||
} | ||
opts := rs.opts | ||
opts.TargetVersion = uint32(version) |
Check failure
Code scanning / gosec
Potential integer overflow by integer type conversion
Codecov Report
@@ Coverage Diff @@
## main #1114 +/- ##
==========================================
- Coverage 46.16% 46.13% -0.03%
==========================================
Files 82 82
Lines 7454 7456 +2
==========================================
- Hits 3441 3440 -1
- Misses 3648 3651 +3
Partials 365 365
|
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.
Thanks!
@yihuang After integrating this change with our chain, we are seeing some concurrent map writes error when exporting snapshot:
Are you using a specific cosmos iavl version that has the concurrent write support? |
There's a |
Signed-off-by: yihuang <huang@crypto.com>
CacheMultiStoreWithVersion
is needed for grpc query service and cosmwasm snapshotting.👮🏻👮🏻👮🏻 !!!! 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! :)