mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Test Batches with Instructions
This commit is contained in:
@@ -699,6 +699,8 @@ async fn run<C: Coin, D: Db, Co: Coordinator>(mut raw_db: D, coin: C, mut coordi
|
||||
}).collect()
|
||||
};
|
||||
|
||||
info!("created batch {} ({} instructions)", batch.id, batch.instructions.len());
|
||||
|
||||
// Start signing this batch
|
||||
tributary_mutable
|
||||
.substrate_signers
|
||||
|
||||
@@ -162,7 +162,7 @@ impl<D: Db> SubstrateSigner<D> {
|
||||
self.attempt.insert(id, attempt);
|
||||
|
||||
let id = SignId { key: self.keys.group_key().to_bytes().to_vec(), id, attempt };
|
||||
info!("signing batch {} with attempt #{}", hex::encode(id.id), id.attempt);
|
||||
info!("signing batch {}, attempt #{}", hex::encode(id.id), id.attempt);
|
||||
|
||||
// If we reboot mid-sign, the current design has us abort all signs and wait for latter
|
||||
// attempts/new signing protocols
|
||||
@@ -178,7 +178,7 @@ impl<D: Db> SubstrateSigner<D> {
|
||||
// Only run if this hasn't already been attempted
|
||||
if SubstrateSignerDb::<D>::has_attempt(txn, &id) {
|
||||
warn!(
|
||||
"already attempted {} #{}. this is an error if we didn't reboot",
|
||||
"already attempted batch {}, attempt #{}. this is an error if we didn't reboot",
|
||||
hex::encode(id.id),
|
||||
id.attempt
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user