-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Enable loud hard-fork detection #131
Comments
#171 was a duplicate. It seems to me that if you, as a Zcoin node, have detected that you're on the short side of a fork, then it is unsafe to tell your user that they received any Zcoin. Any Zcoin that you tell your user they've received, at that point, could be invalidated out from under them if they subsequently upgrade to new software which switches to the longer branch of the chain. So as far as I can tell, once you've detected this condition, the only safe thing to do is to warn the user and refuse to process anymore incoming transactions ostensibly offered to your user. |
sipa says that this is currently implemented in bitcoin core:
|
It seems possible to notice being on either side of a fork (assuming you receive the block headers). Presumably the core codebase doesn't propagate headers on other forks, so it may be hard to see a shorter fork, since those blocks will not propagate to your node. |
I'd like to revisit whether this should be in 1.0, because I think that putting it in 1.0 would make it much easier to safely implement hard-forking post-1.0 changes. |
+1 on revisiting this. |
Unfortunately upstream Bitcoin-Core is talking about removing this from that codebase due to it being unsatisfactory in some way: https://botbot.me/freenode/bitcoin-core-dev/2016-03-31/?msg=63274564&page=2 They've been saying, in IRC chat, that they want to put back a "fixed" implementation of it in the future. I don't understand what's wrong with the current implementation or what fixed implementation they'd want. |
Whoops, my mistake. The thing that they're talking about disabling is not the hard-fork-detector, it is the network-partition-detector: https://botbot.me/freenode/bitcoin-core-dev/2016-03-31/?msg=63275812&page=2 Thanks to sipa for clarifying! |
#1009 makes it run the |
This feature may be a fairly light configuration of an existing feature: #109 is for documenting the existing feature, and it links to this bitcoin-development message which alludes to the feature:
https://www.mail-archive.com/bitcoin-development@lists.sourceforge.net/msg06273.html
The text was updated successfully, but these errors were encountered: