Skip to content

Commit d465be7

Browse files
committed
f CONSIDERED_SPENT - 1
1 parent b74476b commit d465be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sweep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ where
314314
// Prune all outputs that have sufficient depth by now.
315315
locked_outputs.retain(|o| {
316316
if let Some((conf_height, _)) = o.confirmed_in_block {
317-
if height >= conf_height + CONSIDERED_SPENT_THRESHOLD_CONF {
317+
if height >= conf_height + CONSIDERED_SPENT_THRESHOLD_CONF - 1 {
318318
let key = hex_utils::to_string(&o.id);
319319
match self.kv_store.remove(SPENDABLE_OUTPUT_INFO_PERSISTENCE_NAMESPACE, &key) {
320320
Ok(_) => return false,

0 commit comments

Comments
 (0)