From eb88735d72eb190f4da97bb64bd46dacb652648b Mon Sep 17 00:00:00 2001 From: SW van Heerden Date: Thu, 29 Feb 2024 15:02:41 +0200 Subject: [PATCH] fix bug in rewind --- base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs b/base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs index 2d468d4d93..a4d9806b01 100644 --- a/base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs +++ b/base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs @@ -1018,7 +1018,7 @@ impl LMDBDatabase { utxo_mined_info.output.minimum_value_promise, ); let smt_key = NodeKey::try_from(input.commitment()?.as_bytes())?; - let smt_node = ValueHash::try_from(input.smt_hash(row.spent_height).as_slice())?; + let smt_node = ValueHash::try_from(input.smt_hash(utxo_mined_info.mined_height).as_slice())?; if let Err(e) = output_smt.insert(smt_key, smt_node) { error!( target: LOG_TARGET,