Skip to content
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

Generate beefy checkpoint from runtime storage #1197

Closed
wants to merge 2 commits into from

Conversation

yrong
Copy link
Contributor

@yrong yrong commented May 13, 2024

@yrong yrong changed the title Filter out beefy bad keys Generate beefy checkpoint from runtime storage May 13, 2024
let publicKeyHashed = createKeccakHash("keccak256")
.update(Buffer.from(publicKey))
.digest()
addrs.push(publicKeyHashed.slice(12))
Copy link
Contributor

Choose a reason for hiding this comment

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

Wont this change the length of the list of validator addresses, which in turn will affect the merkle tree and eventual root? If the same logic is applied in the relayer then I think its fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As the title mentioned, we don't manually construct the merkle root from the addresses as before, instead get currentAuthorities from runtime storage. The printing here is only for debug purpose.

@yrong
Copy link
Contributor Author

yrong commented May 17, 2024

Closed in favor of #1190

@yrong yrong closed this May 17, 2024
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