From 703d926a235b489f64630e003e13cfff04f8e09c Mon Sep 17 00:00:00 2001 From: Peilun Li Date: Tue, 15 Oct 2024 01:52:42 +0800 Subject: [PATCH] Fix test. --- common/append_merkle/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/append_merkle/src/lib.rs b/common/append_merkle/src/lib.rs index 9468394..d4292c1 100644 --- a/common/append_merkle/src/lib.rs +++ b/common/append_merkle/src/lib.rs @@ -555,7 +555,7 @@ impl> AppendMerkleTree { .ok_or_else(|| anyhow!("tx_seq unavailable, root={:?}", tx_seq))? .clone(); // Dropping the upper layers that are not in the old merkle tree. - for height in (delta_nodes.right_most_nodes.len()..(self.height() - 1)).rev() { + for height in (delta_nodes.right_most_nodes.len()..self.height()).rev() { self.node_manager.truncate_layer(height); } for (height, (last_index, right_most_node)) in