Skip to content

Commit

Permalink
fix(dan): include state_root in node hash (#3836)
Browse files Browse the repository at this point in the history
Small bug that state_root was missing from node hash
  • Loading branch information
stringhandler committed Feb 15, 2022
1 parent 9026152 commit 5cda980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dan_layer/core/src/models/hot_stuff_tree_node.rs
Expand Up @@ -73,6 +73,7 @@ impl<TPayload: Payload> HotStuffTreeNode<TPayload> {
.chain(self.parent.as_bytes())
.chain(self.payload.consensus_hash())
.chain(self.height.to_le_bytes())
.chain(self.state_root.as_bytes())
.finalize_fixed();
result.into()
}
Expand Down

0 comments on commit 5cda980

Please sign in to comment.