Skip to content

Commit

Permalink
fix bug in rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Feb 29, 2024
1 parent 585374d commit eb88735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eb88735

Please sign in to comment.