-
Notifications
You must be signed in to change notification settings - Fork 126
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: bad blocks chain extension #479
Conversation
feat: chain extensions
bda20a7
to
52e1ed3
Compare
Nice ! @orriin can you please add instructions to test this ? It be also be helpful to try using this to sync an archive node on finney
What happens if all the peers have the badblocks? Does this mean it wont be able to sync as it is banning a peers? |
scripts/localnet.sh
Outdated
@@ -8,7 +8,7 @@ BASE_DIR="$SCRIPT_DIR/.." | |||
|
|||
: "${CHAIN:=local}" | |||
: "${BUILD_BINARY:=1}" | |||
: "${FEATURES:=pow-faucet}" | |||
: "${FEATURES:="pow-faucet runtime-benchmarks"}" |
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.
Do we need the runtime-benchmarks
for localnet ?
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.
Yeah it didn't work, got the same error that you DM'd me about
Yeah, it can't sync from them anyway because they have bad blocks. Dw though, the ban list is cleared when the node restarts. |
@orriin please resolve conflicts |
Closes #467
bad_blocks
in chain specsTested:
Node will log attempts to import bad blocks a few times before banning the peer trying to propagate the bad block.