This repository was 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.7k
Delay beefy worker initialization while network is on major sync #10705
Closed
Wizdave97
wants to merge
16
commits into
paritytech:master
from
Wizdave97:david/delay-beefy-on-major-sync
Closed
Changes from 7 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f6eaef1
delay beefy start on major sync
Wizdave97 b7e28d4
fix conflicts
Wizdave97 ddea83b
use a future to wait on major sync
Wizdave97 befe3d2
Merge branch 'master' of https://github.com/paritytech/substrate into…
Wizdave97 e88d416
Merge branch 'master' of https://github.com/paritytech/substrate into…
Wizdave97 44ff51b
Merge branch 'paritytech:master' into david/delay-beefy-on-major-sync
Wizdave97 e104fd1
updated network parameter with sync oracle trait in beefy params
Wizdave97 31b04cb
use waker_by_ref as a tempaorary fix to wake up future
Wizdave97 ecdd381
Merge branch 'master' of https://github.com/paritytech/substrate into…
Wizdave97 8aca7a1
create a channel for major sync notifications
Wizdave97 65071ae
minor fix
Wizdave97 6ef365f
wrapper major sync sender in Arc
Wizdave97 e3395c6
Merge branch 'paritytech:master' into david/delay-beefy-on-major-sync
Wizdave97 16efe0f
Merge branch 'master' of https://github.com/paritytech/substrate into…
Wizdave97 0d2a0c7
make SyncOracle usable as trait object
Wizdave97 3675f3e
Merge branch 'david/delay-beefy-on-major-sync' of github.com:Wizdave9…
Wizdave97 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 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
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 function has no way of knowing when the sync is over, i suggest adding it to the sync_oracle itself
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.
What if it's rescheduled for polling with
cx.waker().wake_by_ref()before returning pending, Would that be fine?