Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdate nMinimumChainWork and defaultAssumeValid. #9779
Conversation
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
utACK 3f78e46 for mainnet. |
This comment has been minimized.
This comment has been minimized.
@jtimon The minimum chain work is not required to match the work of
the block that is assumed to be valid.
…On Thu, Feb 16, 2017 at 9:47 PM, Jorge Timón ***@***.***> wrote:
utACK 3f78e46 for mainnet.
For testnet, getblock "0x00000000000128796ee387cf110ccb9d2f36cffaf7f73079c995377c65ac0dcc" tells me that the minimum chain work should be 0x00000000000000000000000000000000000000000000001dcfc5dbe39283e519 instead of 0x00000000000000000000000000000000000000000000001f057509eba81aed91
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This comment has been minimized.
This comment has been minimized.
Right, but any reason for not having them matching? EDIT: (specially when you're updating both) |
This comment has been minimized.
This comment has been minimized.
I assume the rationale is that testnet is super flaky and it is better
to be conservative in what block to assume valid, as it has to be part
of a valid chain to have any effect.
... In theory you could even "pre-date" the minimum chain work to the
minimum chain work you expect at the earliest expected time of
release.
|
fanquake
added
the
Validation
label
Feb 17, 2017
This comment has been minimized.
This comment has been minimized.
@jtimon we only set the assumevalid back because the chain might reorg. But even if the chain reorgs the work will be strictly equal or better. So the chainwork should be set as far forward as possible, but assumevalid may need to be set back to avoid reorgs. (I submitted this PR only after looking to see that there was no visible fork at the bitcoin height there and checked that the block was a couple minutes old at least, otherwise I would have set it one block back-- but I still would have had chainwork at the highest point currently available) And yes, as Marco says: we could even set minimum chain work into the future (except for the fact that doing so might confuse testing!) |
sipa
added this to the 0.14.0 milestone
Feb 17, 2017
laanwj
merged commit 3f78e46
into
bitcoin:master
Feb 17, 2017
1 check passed
added a commit
that referenced
this pull request
Feb 17, 2017
This comment has been minimized.
This comment has been minimized.
|
|
||
// By default assume that the signatures in ancestors of this block are valid. | ||
consensus.defaultAssumeValid = uint256S("0x0000000000000000030abc968e1bd635736e880b946085c93152969b9a81a6e2"); //447235 | ||
consensus.defaultAssumeValid = uint256S("0x00000000000000000013176bf8d7dfeab4e1db31dc93bc311b436e82ab226b90"); //453354 |
This comment has been minimized.
This comment has been minimized.
|
||
// By default assume that the signatures in ancestors of this block are valid. | ||
consensus.defaultAssumeValid = uint256S("0x000000000871ee6842d3648317ccc8a435eb8cc3c2429aee94faff9ba26b05a0"); //1043841 | ||
consensus.defaultAssumeValid = uint256S("0x00000000000128796ee387cf110ccb9d2f36cffaf7f73079c995377c65ac0dcc"); //1079274 |
gmaxwell commentedFeb 16, 2017
No description provided.