From 35256575ea16dc9a926a62a73b7533e28d40b42e Mon Sep 17 00:00:00 2001 From: Mike the Tike Date: Mon, 14 Feb 2022 14:49:52 +0200 Subject: [PATCH] fix: include state_root in node hash --- dan_layer/core/src/models/hot_stuff_tree_node.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/dan_layer/core/src/models/hot_stuff_tree_node.rs b/dan_layer/core/src/models/hot_stuff_tree_node.rs index 9cc9543e3b..7334d38d9b 100644 --- a/dan_layer/core/src/models/hot_stuff_tree_node.rs +++ b/dan_layer/core/src/models/hot_stuff_tree_node.rs @@ -73,6 +73,7 @@ impl HotStuffTreeNode { .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() }