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

fix(base_layer/core): fixes incorrect validator node merkle root calculation #5005

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Dec 6, 2022

Description

feat: add list-validator-nodes command
fix: typo in error variant
feat: output validator Merkle root in BlockHeader Display impl
fix: correct validator node Merkle root calculation
fix: bug in internal epoch numbering
tests: new unit tests

Motivation and Context

The validator node MR calculation was invalid due to incorrect usage of the MMR API.
There was a subtraction underflow bug in insert_validator_node in lmdb_db
Registering on a new epoch should be valid for the next epoch
list-validator-nodes was added to make it easy to check the current validator node set

How Has This Been Tested?

Added some new unit tests that check the validator node registration MR

@stringhandler stringhandler merged commit 951c0d6 into tari-project:development Dec 7, 2022
@sdbondi sdbondi deleted the fix-validator-node-mr branch December 7, 2022 06:50
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.

None yet

2 participants