Skip to content

Add epoch merkle root metadata field#247

Open
EyeOfPython wants to merge 1 commit into
new_epoch_hashfrom
epoch_merkle_root
Open

Add epoch merkle root metadata field#247
EyeOfPython wants to merge 1 commit into
new_epoch_hashfrom
epoch_merkle_root

Conversation

@EyeOfPython
Copy link
Copy Markdown
Collaborator

No description provided.

@EyeOfPython EyeOfPython force-pushed the epoch_merkle_root branch 4 times, most recently from 5a5ae3d to 22b3706 Compare March 3, 2022 13:11
Copy link
Copy Markdown
Collaborator

@schancel schancel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be worthwhile to split the epoch hash changes from this metadata change?

@schancel schancel changed the base branch from master to new_epoch_hash March 26, 2022 18:13
epochMerkleLeaves.push_back(ComputeMerkleRoot(
{pindexPrev->GetBlockHash(), pindexPrev->hashMerkleRoot},
dummyNumLayers));
pindexPrev = pindexPrev->pprev;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need some check in here. I realize we have so many blocks as to not hit the genesis after this is activated, but seems prudent?

// Add block's own merkle root
// 0 for the block hash, as we cannot know our own block hash here
epochMerkleLeaves.push_back(
ComputeMerkleRoot({uint256(), block.hashMerkleRoot}, dummyNumLayers));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why we would want this.

@schancel schancel self-requested a review November 6, 2022 19:55
Copy link
Copy Markdown
Collaborator

@schancel schancel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes to ensure no accidental merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants