-
Notifications
You must be signed in to change notification settings - Fork 85
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
the meaning of prev_root #78
Comments
Then I found that 0000000000000000002a8bc32f43277fe9c063b9c99ea252b483941dcd06e217 while 00000000000000000017ff4903ef366c8f62e3151ba74e41b8332a126542f538 is the block # of BTC at height 555959( Why Grin contains the info from BTC? very weird. |
Not that weird; it serves as proof that the Grin Genesis blocks were generated after those Bitcoin blocks were (similar to the Bitcoin genesis block containing the message “The Times 03/Jan/2009 Chancellor on brink of second bailout for banks”). This further allays possible fears that the chain could have been fast mined before the public. |
Thanks for responding to me. OK. then does this really get into the MMR? it say prev_root. suppose it does not get into the header MMR, then the first node of the header MMR is the blake2b(32) hash of this does not match the block#1.prev_root 5671FB28C1509E422D9B8F60CE90E9AC9041E3B9FEBD34A79C03048844ED2733 (%%%%%) suppose it(the BTC block hash) does not get into the header MMR, it's the first node, and the genesis block gives the 2nd node. blake2b(32) hash the (***** line) with index 1(the 2nd node), this gives: DC205D06D4358D797B8A03D02EB52DD792BD151B8C64F2D315D6489804109C91 Anyone has any idea on this? |
What do you mean by "block#0 hash"? |
eventually, I found that for header MMR, to build the mountain, only the index + cuckoo_solution is hashed for those leaf nodes, now block#x.prev_root is indeed the root of the header MMR. |
And the BTC block hash does not get into the MMR. |
Where in the code did you see this happening? |
I don't understand its meaning.
Why for the genesis block(mainnet), it has prev_root 0000000000000000002a8bc32f43277fe9c063b9c99ea252b483941dcd06e217
and for floo net, it is 00000000000000000017ff4903ef366c8f62e3151ba74e41b8332a126542f538?
Thanks.
The text was updated successfully, but these errors were encountered: