This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Implement Lean BEEFY #10882
Merged
Merged
Implement Lean BEEFY #10882
Changes from 52 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
e47067a
consolidate set best beefy block operation
acatangiu f0fc691
add new beefy future to be used for core logic
acatangiu 26887ed
add logic to init best beefy
acatangiu f56eb0b
beefy: only hold single active round
acatangiu f5eab4a
move beefy voting logic to separate async task
acatangiu 606a5fa
beefy voting logic - wip 2
acatangiu e956de9
beefy voting logic - wip 3
acatangiu 02e85f7
beefy keep track of votes for multiple blocks within one session
acatangiu 38c1b48
improve self-equivocation logic
acatangiu bbd3487
beefy voting logic - wip 4
acatangiu d236c7f
beefy fix gossip rounds - wip 5
acatangiu 9d1cbca
remove leftover commented code
acatangiu 81b61d7
replace channel with a custom `impl Stream` object
acatangiu 28e0c3d
fix beefy-gadged tests
acatangiu db02909
Apply suggestions from code review
acatangiu d5e84ab
explicitly handle no best beefy block
acatangiu 0a045b1
fix walk up the chain looking for session boundary
acatangiu 5b3f28f
pallet-beefy: correctly change session
acatangiu ef28ce3
fix tests
acatangiu 6a55e9a
better contain beefy gossip code
acatangiu e35faf0
address issues from code review
acatangiu 92b4813
disallow voting rounds older than the best concluded one
acatangiu baab53d
add sanity check with debug error message for trying to add older bes…
acatangiu 5ca12fe
better contain round conclusion logic
acatangiu 5e1bf9c
enforce voting target always bigger than current best beefy
acatangiu 5664dd9
impl review suggestions
acatangiu 0107be0
beefy gossip: add tests
acatangiu 8642cba
beefy rounds: add tests
acatangiu adfcd71
Merge branch 'master' of github.com:paritytech/substrate
acatangiu bbfd8b6
remove async ticker, use specialized sync functions
acatangiu 6893234
Lean BEEFY - simplify beefy worker logic
acatangiu d633ce2
beefy rounds and gossip implement review suggestions
acatangiu 2e0e0ab
pause beefy worker while network is on major sync
acatangiu b7cf889
Pause BEEFY worker until BEEFY runtime pallet is available
acatangiu 1085195
sign BEEFY mandatory blocks with ending-session's validator set
acatangiu c172b74
Merge branch 'master' of github.com:paritytech/substrate into lean-beefy
acatangiu 5c3a588
remove leftover debug log line
acatangiu e39a390
Merge branch 'master' of github.com:paritytech/substrate into lean-beefy
acatangiu 2f8c052
add BEEFY worker tests infrastructure
acatangiu 5f17950
Merge branch 'master' of github.com:paritytech/substrate into lean-beefy
acatangiu 62a1d33
fix merge damage
acatangiu 14b451c
beefy worker remove custom runtime param
acatangiu 45ecdea
beefy worker enable run tests with mock runtime pallet
acatangiu 624df42
avoid leaking test data in public api
acatangiu 01d06db
add more beefy unit tests
acatangiu 1ccfc55
add more more beefy unit tests - wip
acatangiu 533e2a9
fix build
acatangiu bc2d555
add test for session init
acatangiu 636b3cf
explicitly verify when beefy should NOT finalize blocks
acatangiu 90a28c5
beefy full test also verify signed commitments
acatangiu 253007b
fix BEEFY bug where some older valid round would not be gossiped
acatangiu 3c0313c
add test with adversarial node voting on bad blocks
acatangiu 95ccf07
Merge branch 'master' of github.com:paritytech/substrate into lean-beefy
acatangiu 9a89f87
address review comments
acatangiu d807c65
fix clippy
acatangiu 94f3b2f
review suggestions
acatangiu 06f564a
fix known votes memory leak
acatangiu c04bcfb
avoid quadratic loop in getting signatures
acatangiu ad5d8ea
Merge branch 'master' of github.com:paritytech/substrate into lean-beefy
acatangiu 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
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.
Should be removed if we use
futures_timer
instead.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.
done