forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 7
fix: staking cache to in-memory KV store #1733
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
Open
randy-cro
wants to merge
48
commits into
crypto-org-chain:release/v0.50.x
Choose a base branch
from
randy-cro:fix/staking-optimization
base: release/v0.50.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
61d0ebc
try memory store wrapped in kvstore for unbonding delegations cache
randy-cro d1b0eba
add memory cache to unbonding validators and redelegations
randy-cro ab33f48
remove ctx from getPrefix
randy-cro 54dff0c
remove ctx from getKey
randy-cro a326ce4
fix to make dirty true when setEntry is called and the cache is full
randy-cro 864125b
return empty slice as default for getEntry
randy-cro b2ceaea
fix tests
randy-cro 68c352f
correct fix: return empty slice for getEntry if entry cant be found/e…
randy-cro 104058e
remove unneeded comments
randy-cro 8acdaa8
panic should loadFromStore be nil
randy-cro 4630a2d
move storeService panic to within cacheEntry
randy-cro bc01cc1
fix cache tests
randy-cro e0cf240
fix tests
randy-cro 3adb919
gofumpt
randy-cro c9e2836
update CHANGELOG
randy-cro 53afe08
fix comment
randy-cro 0b27b14
gofumpt
randy-cro 86c61a1
remove unneeded comment
randy-cro 34f719d
fix tests
randy-cro 1558400
lint:rename CacheEntryType as EntryType to prevent import stuttering
randy-cro 7a064e7
add mutex lock for methods
randy-cro 4f5b0ce
move load check outside of cache entry to prevent deadlock, lint:refa…
randy-cro edaa5db
minor refactor + gofumpt
randy-cro 88156ba
fix iterator race + possible race in checkreloading
randy-cro 020693b
add dirty load checks to prevent reloading more than once
randy-cro 4259048
fix race issues due to gas in tests
randy-cro 22489fd
fix error logs
randy-cro 266b797
add debug logs (to be removed)
randy-cro 1d656b1
test out gaslessContext
randy-cro f90e32d
Revert "test out gaslessContext"
randy-cro 1d08aee
Revert "add debug logs (to be removed)"
randy-cro db990aa
set dirty flag to true as soon as the cache is full
randy-cro f7c14c2
use already present noopGasMeter
randy-cro 179d412
add debug logs (to be removed)
randy-cro dd9b81f
remove unused import
randy-cro 2b94181
fix import
randy-cro aa1e079
Revert "use already present noopGasMeter"
randy-cro 8b92ff4
Revert "remove unused import"
randy-cro 046165c
Revert "fix import"
randy-cro 4057979
Revert "add debug logs (to be removed)"
randy-cro cacaca6
Reapply "add debug logs (to be removed)"
randy-cro 298069d
move dirty,full flag to store, remove count
randy-cro 85f41c9
fix test
randy-cro eb8929b
refactor
randy-cro 28bc58c
use baseapp noopgasmeter
randy-cro 91a9b0c
add more tests
randy-cro d2e1080
refactor
randy-cro fbecd69
update CHANGELOG
randy-cro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.