-
Notifications
You must be signed in to change notification settings - Fork 3
Add Merkle Root on Spine Block #1222
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
Add Merkle Root on Spine Block #1222
Conversation
…add-merkle-tree-in-spine-chain
@@ -1004,8 +1005,8 @@ func start() { | |||
|
|||
mainchainSyncChannel := make(chan bool, 1) | |||
mainchainSyncChannel <- true | |||
startSpinechain() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why starting mainchain before spinechain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because the mainchain is injected into spine chain, need the main service ready first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Description
Adding Merkle root & Merkle tree fields on main & spine block. For Spine block, merkle root is build from main blocks and Reference Block Height is the last main block that included in the spine block merkle root. Add fields
merkle_root
,merkle_tree
,reference_block_height
in main & spine block.Breakdown
merkle_root
,merkle_tree
,reference_block_height
Reference Issue
Close #numberIssue
Schema PR changes
zoobc/zoobc-schema#156
Step to Test (optional)
Run multiple nodes in local