-
Notifications
You must be signed in to change notification settings - Fork 212
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
feat(cosmic-swingset): Leave inbound actions in vstorage #7115
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ed47435
feat(cosmic-swingset): Add context info to actionQueue items
mhofman 804502e
fix(cosmic-swingset): type of makeInstallationPublisher
mhofman 0d5aea7
fix(cosmic-swingset): Remove unused getKeys in bufferedStorage
mhofman c8f3623
fix(cosmic-swingset): correct typings for bufferedStorage
mhofman 2d886de
feat(cosmic-swingset): More complete vstorage access
mhofman 2175fb4
refactor(cosmic-swingset): makeQueue does own serialization
mhofman 40a8abb
fix(cosmic-swingset): Use BigInt for chainQueue bounds
mhofman c7b7ca6
refactor(cosmic-swingset): Use IterableIterator for chainQueue consume
mhofman 0d99438
fix(cosmic-swingset): enforce no parallel consume for actionQueue
mhofman de1a353
fix(cosmic-swingset): early done check in makeQueue
mhofman e795236
refactor(cosmic-swingset): launch-chain uses actionQueueStorage
mhofman a32299d
feat(cosmic-swingset): leave inbound in actionQueue
mhofman 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 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 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 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 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 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.
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.
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.
This is a separate entry:
types.QueueInboundMempool
. Please correct any comment or doc which says it's always half ofQueueInbound
.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.
I don't understand, which docs or comment says that?
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.
Let me turn my request in to a question instead - what made you think that the inbound mempool queue max should be half of the inbound queue max?
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.
That's what the existing behavior that I'm porting from JS is.
While we have a
params.QueueMax
value forQueueInbound
, we don't have an explicit param value forQueueInboundMempool
, which is hardcoded and documented as 50% of theQueueInbound
value.However we do need to compute a a value for the
QueueInboundMempool
of thestate.QueueAllowed
. That value is indeed only going to be 50% of the allowedQueueInbound
if the actionQueue is empty. However I don't believe there is any claim anywhere that the allowedQueueInboundMempool
is always 50% of the allowedQueueInbound
.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.
Ah, okay, I get it now.