Correct when the Processor starts using the first key

It waited for CONFIRMATIONS + 1 confirmations, instead of CONFIRMATIONS
confirmations.

Also adds a lib interface to access the coin traits and its constants.
This commit is contained in:
Luke Parker
2023-07-24 15:36:35 -04:00
parent 6df1b46313
commit 5e565fa3ef
4 changed files with 44 additions and 21 deletions

View File

@@ -278,7 +278,7 @@ impl<C: Coin, D: Db> ScannerHandle<C, D> {
panic!("only a single key is supported at this time");
}
info!("Rotating to key {}", hex::encode(key.to_bytes()));
info!("Rotating scanner to key {} at {activation_number}", hex::encode(key.to_bytes()));
let (_, outputs) = ScannerDb::<C, D>::save_scanned_block(txn, &key, activation_number);
scanner.ram_scanned.insert(key.to_bytes().as_ref().to_vec(), activation_number);