mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-13 22:49:25 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user