Skip to content

Commit

Permalink
Add missing if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Sep 24, 2023
1 parent d2d0ff3 commit 2753713
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions processor/src/multisigs/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,12 @@ impl<N: Network, D: Db> ScannerHandle<N, D> {

self.held_scanner = Some(scanner);

// Load the key from the DB, as it will have already been removed from RAM
// Load the key from the DB, as it will have already been removed from RAM if retired
let key = ScannerDb::<N, D>::keys(txn)[0].1;
let is_retirement_block = ScannerDb::<N, D>::retirement_block(txn, &key) == Some(number);
ScannerDb::<N, D>::retire_key(txn);
if is_retirement_block {
ScannerDb::<N, D>::retire_key(txn);
}
(is_retirement_block, outputs)
}

Expand Down

0 comments on commit 2753713

Please sign in to comment.