doged-io / doged

very currency, Bitcoin ABC edition
MIT License
13 stars 2 forks source link

[DogeCash] Add `CalcExpectedMerkleTreeIndex` #48

Closed EyeOfPython closed 1 week ago

EyeOfPython commented 2 weeks ago

This function allows tweaking the indices at which the hash of our block occurs in the merkle tree in the merge-mined block.

The design of this seems a bit obscure, and the merge mine nonce is 0 for most blocks on the network, but it's a consensus rule so we'll have to follow it exactly.