Test Batches with Instructions

This commit is contained in:
Luke Parker
2023-07-26 14:02:17 -04:00
parent e00aa3031c
commit 64c309f8db
6 changed files with 74 additions and 14 deletions

View File

@@ -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

View File

@@ -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
);