-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Banlist updates #7350
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
Merged
Merged
Banlist updates #7350
Conversation
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
- move the SetBannedSetDirty(false) call from DumpData() into DumpBanlist() - ensure we only set false, if the write succeeded
- only start working on/with banlist data, if reading in the banlist from disk didn't fail - as CNode::setBannedIsDirty is false (default) when reading fails, we don't need to explicitly set it to false to prevent writing banlist.dat in that case either
- to match the peers.dat handling also supply a debug.log entry for how many entries were loaded from banlist.dat and how long it took - add a GUI init message for loading the banlist (same as with peers.dat) - move the same message for peers.dat upwards in the code, to be able to reuse the timing variable nStart and also just log, if our read from peers.dat didn't fail
- allows CNode::SweepBanned() to run, even if !CNode::BannedSetIsDirty(), because if nBanUntil is over we want the ban to be disabled for these nodes
This looks like consistency cleanup/refactor. Any new feature to test here? |
Thanks. |
utACK 5bc4fb7 |
1 similar comment
utACK 5bc4fb7 |
laanwj
added a commit
that referenced
this pull request
Jan 20, 2016
e8600c9 banlist (bugfix): allow CNode::SweepBanned() to run on interval (Philip Kaufmann) 2977c24 banlist: add more banlist infos to log / add GUI signal (Philip Kaufmann) ce479aa banlist: better handling of banlist in StartNode() (Philip Kaufmann) 57c77fe banlist: update set dirty to be more fine grained (Philip Kaufmann)
luke-jr
added a commit
to bitcoinknots/bitcoin
that referenced
this pull request
Jun 26, 2016
Fuzzbawls
added a commit
to PIVX-Project/PIVX
that referenced
this pull request
Mar 4, 2020
594e027 banlist (bugfix): allow CNode::SweepBanned() to run on interval (Philip Kaufmann) 215fcf7 banlist: add more banlist infos to log / add GUI signal (Philip Kaufmann) 4655134 banlist: better handling of banlist in StartNode() (Philip Kaufmann) f6ec277 banlist: update set dirty to be more fine grained (Philip Kaufmann) Pull request description: Minor updates to how the banlist is handled. ported from bitcoin#7350 ACKs for top commit: random-zebra: utACK 594e027 furszy: utACK 594e027 Tree-SHA512: a81675ddd48fe30f4978dfd09a7739176ed8dd351eba9d423e04693c5e81b8f266b6343a84b945e341e9235e110b04fe87e4b2a5f304f00689df983d952bd93e
21 tasks
zkbot
added a commit
to zcash/zcash
that referenced
this pull request
Mar 6, 2020
banlist.dat: store banlist on disk Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#6310 - bitcoin/bitcoin#6315 - Only the new signal and net changes, no QT - bitcoin/bitcoin#7350 - bitcoin/bitcoin#7458 Part of #2074.
wqking
pushed a commit
to wqking-temp/Vitae
that referenced
this pull request
Aug 5, 2020
594e027a424308129ce95aa0c5fd91a030885c68 banlist (bugfix): allow CNode::SweepBanned() to run on interval (Philip Kaufmann) 215fcf7c21cc953e43d47a3ab1e9c204d80d4102 banlist: add more banlist infos to log / add GUI signal (Philip Kaufmann) 4655134f3dde3c188c7429329ab21942bffe036a banlist: better handling of banlist in StartNode() (Philip Kaufmann) f6ec277aaa3f36f02604d2cdd2b681de5efe95b7 banlist: update set dirty to be more fine grained (Philip Kaufmann) Pull request description: Minor updates to how the banlist is handled. ported from bitcoin/bitcoin#7350 ACKs for top commit: random-zebra: utACK 594e027a424308129ce95aa0c5fd91a030885c68 furszy: utACK 594e027 Tree-SHA512: a81675ddd48fe30f4978dfd09a7739176ed8dd351eba9d423e04693c5e81b8f266b6343a84b945e341e9235e110b04fe87e4b2a5f304f00689df983d952bd93e
zkbot
added a commit
to zcash/zcash
that referenced
this pull request
Nov 12, 2020
banlist.dat: store banlist on disk Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#6310 - bitcoin/bitcoin#6315 - Only the new signal and net changes, no QT. - bitcoin/bitcoin#7350 - bitcoin/bitcoin#7458 - bitcoin/bitcoin#7696 - bitcoin/bitcoin#7959 - bitcoin/bitcoin#7906 - Only the ban-related commits. - bitcoin/bitcoin#8392 - Only the second commit. - bitcoin/bitcoin#8085 - Only the second commit. - bitcoin/bitcoin#10564 Part of #2074.
21 tasks
zkbot
added a commit
to zcash/zcash
that referenced
this pull request
Feb 11, 2021
banlist.dat: store banlist on disk Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#6310 - bitcoin/bitcoin#6315 - Only the new signal and net changes, no QT. - bitcoin/bitcoin#7350 - bitcoin/bitcoin#7458 - bitcoin/bitcoin#7696 - bitcoin/bitcoin#7959 - bitcoin/bitcoin#7906 - Only the ban-related commits. - bitcoin/bitcoin#8392 - Only the second commit. - bitcoin/bitcoin#8085 - Only the second commit. - bitcoin/bitcoin#10564 Part of #2074.
zkbot
added a commit
to zcash/zcash
that referenced
this pull request
Feb 17, 2021
banlist.dat: store banlist on disk Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#6310 - bitcoin/bitcoin#6315 - Only the new signal and net changes, no QT. - bitcoin/bitcoin#7350 - bitcoin/bitcoin#7458 - bitcoin/bitcoin#7696 - bitcoin/bitcoin#7959 - bitcoin/bitcoin#7906 - Only the ban-related commits. - bitcoin/bitcoin#8392 - Only the second commit. - bitcoin/bitcoin#8085 - Only the second commit. - bitcoin/bitcoin#10564 - bitcoin/bitcoin#13061 - Wasn't needed when I first made this backport in 2017, but it is now! Part of #2074.
zkbot
added a commit
to zcash/zcash
that referenced
this pull request
Feb 17, 2021
banlist.dat: store banlist on disk Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#6310 - bitcoin/bitcoin#6315 - Only the new signal and net changes, no QT. - bitcoin/bitcoin#7350 - bitcoin/bitcoin#7458 - bitcoin/bitcoin#7696 - bitcoin/bitcoin#7959 - bitcoin/bitcoin#7906 - Only the ban-related commits. - bitcoin/bitcoin#8392 - Only the second commit. - bitcoin/bitcoin#8085 - Only the second commit. - bitcoin/bitcoin#10564 - bitcoin/bitcoin#13061 - Wasn't needed when I first made this backport in 2017, but it is now! Part of #2074.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Recovering #6371 which was basically ready to merge when @Diapolo decided to leave