Test the processor's batch signing

Updates message-queue ot try recv every second, not 5.
This commit is contained in:
Luke Parker
2023-07-25 18:09:23 -04:00
parent a2493cfafc
commit 88a1fce15c
8 changed files with 123 additions and 35 deletions

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 {} #{}", hex::encode(id.id), id.attempt);
info!("signing batch {} with 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
@@ -312,6 +312,8 @@ impl<D: Db> SubstrateSigner<D> {
Err(e) => todo!("malicious signer: {:?}", e),
};
info!("signed batch {} with attempt #{}", hex::encode(id.id), id.attempt);
let batch =
SignedBatch { batch: self.signable.remove(&id.id).unwrap(), signature: sig.into() };