Further work on transaction signing

This commit is contained in:
Luke Parker
2024-09-06 03:20:38 -04:00
parent b62fc3a1fa
commit a353f9e2da
13 changed files with 299 additions and 74 deletions

View File

@@ -65,6 +65,10 @@ impl<D: Db, M: Clone + PreprocessMachine> AttemptManager<D, M> {
}
/// Handle a message for a signing protocol.
///
/// Handling a message multiple times is safe and will cause subsequent calls to return
/// `Response::Messages(vec![])`. Handling a message for a signing protocol which isn't being
/// worked on (potentially due to rebooting) will also return `Response::Messages(vec![])`.
pub fn handle(&mut self, msg: CoordinatorMessage) -> Response<M> {
match msg {
CoordinatorMessage::Preprocesses { id, preprocesses } => {