Repository navigation
BIP95: Change proposed Testnet 5 genesis block structure - #2347
Conversation
|
cc BIP authors @fjahr @polespinasa |
| - `Message` carries a recent Bitcoin mainnet block hash as an anti-pre-mine | ||
| commitment, serving the same purpose as the newspaper headline in | ||
| Bitcoin's mainnet genesis block. | ||
| - `Time stamp` is the time of mining or that of the block which hash is |
There was a problem hiding this comment.
So, which of the two is it?
Or do you mean "start with the timestamp of the mainnet block, and roll it forward to current time as you exhaust the search space"? But is it really necessary with nonce + 8 bytes of extranonce + version rolling?
There was a problem hiding this comment.
I don't think it's necessary (1M diff should need about 52 bits of nonce space, so 64 bits of extranonce alone should certainly cover it, plus 48-56 bits of header nonce via BIP320 or BIP323 nVersion rolling). But miners designed for mainnet may roll the timestamp by default, and I don't believe either stratumv1 or stratumv2 provides any way of even specifying otherwise, so I think it's better to leave it flexible.
41c604a to
352bf23
Compare
murchandamus
left a comment
There was a problem hiding this comment.
Good changes. Using an OP_RETURN output is a neat idea. Having the commitment in the coinbase field also seems more familiar.
| output. It is `OP_RETURN` followed by a push of 8-bytes of extranonce | ||
| space, as it is unspendable in any event, and this avoids bike shedding | ||
| over its content. | ||
| - `Message` carries a recent Bitcoin mainnet block hash as an anti-pre-mine |
There was a problem hiding this comment.
This previously said “in the coinbase input script”, which still seems to be the intention. I am confused that this part was dropped.
|
LGTM |
This moves the anti-pre-mine commitment back into `pszTimestamp` and keeps it as ASCII text, rather than using it as a fake public key. The genesis transaction's output is replaced by an `OP_RETURN` to avoid confusion over spendability. Using the `OP_RETURN` output and `nVersion` rolling for additional nonce bits are explicitly allowed.
352bf23 to
69ec29d
Compare
murchandamus
left a comment
There was a problem hiding this comment.
LGTM, waiting for owner sign-off.
|
@fjahr any thoughts? |
|
ACK 69ec29d I would have liked some additional context in the description that this makes the mining of the Genesis block easier with a pool and that there is a concrete plan to do a fair, decentralized bootstrap but I guess the change already got enough attention and agreement without that info :) We can add an acknowledgement when the actual Genesis block is added. It may also be interesting to add an informational section to the BIP how the fair bootstrap worked when it was successful, so it is documented for potential future interest. But not sure the BIP is the best place for it. |
|
Thanks @fjahr. Please open a follow-up for your suggestions, if you like. |
This moves the anti-pre-mine commitment back into
pszTimestampand keeps it as ASCII text, rather than using it as a fake public key. The genesis transaction's output is replaced by anOP_RETURNto avoid confusion over spendability. Using theOP_RETURNoutput andnVersionrolling for additional nonce bits are explicitly allowed.