Skip to content

Commit

Permalink
fix: include state_root in node hash
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Feb 14, 2022
1 parent 69fbbbc commit ddb8e4b
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
Original file line number Diff line number Diff line change
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)
.finalize_fixed();
result.into()
}
Expand Down

0 comments on commit ddb8e4b

Please sign in to comment.