Finish transaction signing task with TX rebroadcast code

This commit is contained in:
Luke Parker
2024-09-06 04:15:02 -04:00
parent a353f9e2da
commit 100c80be9f
6 changed files with 109 additions and 23 deletions

View File

@@ -278,9 +278,7 @@ impl<D: Db, M: Clone + PreprocessMachine> SigningProtocol<D, M> {
}
/// Cleanup the database entries for a specified signing protocol.
pub(crate) fn cleanup(db: &mut D, id: [u8; 32]) {
let mut txn = db.txn();
Attempted::del(&mut txn, id);
txn.commit();
pub(crate) fn cleanup(txn: &mut impl DbTxn, id: [u8; 32]) {
Attempted::del(txn, id);
}
}