-
Notifications
You must be signed in to change notification settings - Fork 992
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
Plug BlockSpaceAllocator
logic into ProcessProposal
#895
Merged
sug0
merged 38 commits into
tiago/ethbridge/optimize-block-proposal
from
tiago/ethbridge/process-proposal-allocator
Dec 20, 2022
Merged
Changes from 35 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
890edd9
Update index-set to 0.7.1
sug0 fbe4ed5
Move block space allocator to shell/
sug0 c5f0e62
Fix imports
sug0 f33df5d
Add a state tracker for a block space allocator
sug0 b276e13
Inline some simple method calls
sug0 a878447
Seal state tracker API to valid block space allocator states
sug0 7aa56f3
Move tracker to a new file
sug0 28cd78b
Make tracker mod public
sug0 e606d12
Add tracker consts
sug0 0db25a4
WIP: Add block space allocator to ProcessProposal
sug0 0a549a7
Improve docstr
sug0 fd95717
Return reason for rejecting vote ext from ProcessProposal
sug0 0b3109e
Add a fused block space allocator
sug0 97d29b2
Add CurrentState impl to the FusedBlockSpaceAllocator
sug0 8c3df34
WIP: ProcessProposal validation with the block space allocator
sug0 640c3d1
Improve field identifiers in the fused block space allocator
sug0 e2996d3
Removing unnecessary TryAlloc bounds
sug0 3fcb10f
WIP: Checking allocator state in ProcessProposal
sug0 e855810
Use generic param instead of impl in check_proposal_tx()
sug0 1d83824
Generalize FusedBlockSpaceAllocator into CtxBlockSpaceAllocator
sug0 52e4418
Remove Option from ctx allocator
sug0 58b6c4a
Remove all the state tracker non-sense
sug0 9c7f664
Return reason for rejecting vote ext from ProcessProposal
sug0 6fa26f5
Make threshold and tx bins public
sug0 1426518
Keep track of utilized by encrypted txs in ProcessProposal
sug0 a91e928
Add allocation tx error code
sug0 eda49d1
Reject proposal on allocation errors
sug0 b7c025e
Decrypted tx queue meta bug fix
sug0 fd5344e
Check if the decrypted tx queue has any remaining txs left
sug0 c7cbe10
Fix docstrs
sug0 949ffa8
Fix test_too_many_decrypted_txs() unit test
sug0 49f96b2
Allow dead code on TestShell:new()
sug0 8af117a
Fix test_decrypted_txs_out_of_order() unit test
sug0 3ec3ea6
Merge tiago/ethbridge/fix-abcipp-prepare-proposal
sug0 2dbf090
Merge branch 'tiago/ethbridge/fix-abcipp-prepare-proposal' into tiago…
sug0 fcf1ee5
Merge branch 'tiago/ethbridge/optimize-block-proposal' into tiago/eth…
sug0 908305b
Re-order tx building method defs in PrepareProposal
sug0 93fcdda
Add missing tx error code in ProcessProposal docstr
sug0 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.
ErrorCodes::is_recoverable
should be matching on this enum rather than returning(self as u32) <= 3
, to enforce this (related to this NOTE but not the PR itself though, we shouldn't change this as part of this PR)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 how it was defined in
ProcessProposal
before, thisis_recoverable()
method came from aProcessProposal
refactor from back when I was working on eth events vote extensions