Fork detection script - #1968
Merged
Merged
Conversation
ImplOfAnImpl
force-pushed
the
fork_detection_script
branch
from
September 22, 2025 09:33
f420821 to
48ca968
Compare
ImplOfAnImpl
changed the base branch from
difficulty_plot_helpers
to
fork_detection_script_deps
September 22, 2025 09:33
ImplOfAnImpl
force-pushed
the
fork_detection_script
branch
from
September 22, 2025 12:25
48ca968 to
305fbe6
Compare
ImplOfAnImpl
force-pushed
the
fork_detection_script
branch
from
October 3, 2025 15:57
305fbe6 to
998cf39
Compare
ImplOfAnImpl
force-pushed
the
fork_detection_script
branch
from
October 24, 2025 16:37
998cf39 to
4b860c6
Compare
ImplOfAnImpl
force-pushed
the
fork_detection_script
branch
from
November 26, 2025 14:07
4b860c6 to
8969f7e
Compare
ImplOfAnImpl
marked this pull request as ready for review
November 26, 2025 14:28
ImplOfAnImpl
force-pushed
the
fork_detection_script
branch
from
November 27, 2025 09:56
8969f7e to
fd3e62d
Compare
…per. Chainstate no longer prints "Stale block received" to debug log (this was meant to be used by the fork detector).
ImplOfAnImpl
force-pushed
the
fork_detection_script
branch
from
December 10, 2025 19:43
fd3e62d to
bb510ba
Compare
… banned, and use it in the fork detector
ImplOfAnImpl
force-pushed
the
fork_detection_script
branch
from
December 10, 2025 19:46
bb510ba to
4221eb0
Compare
OBorce
approved these changes
Jan 9, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I've been running this script for a couple of months now, it works reasonably well.
Some unrelated minor changes are also in this PR:
--from_heightin the chainstate dumper was renamed to--from-height, for consistency.unsupported_messagetest in p2p (got the failure in another PR).Edit: I also added a node option to specify custom disconnection reason for banning (fork detector uses banning to prevent itself from testing the same nodes over and over again; normally, banning results in "Your address is banned" being sent as the disconnection reason; this may look somewhat scary for a node operator, so now the fork detector will send a more neutral string - "Cannot accept connections at this moment").