Add Bob restart test

This commit is contained in:
Daniel Karzel 2020-12-14 22:16:39 +11:00 committed by Franck Royer
parent 4ec2da29a0
commit 7cae6a9e4d
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
7 changed files with 139 additions and 410 deletions

View file

@ -168,6 +168,10 @@ pub fn is_xmr_locked(state: &BobState) -> bool {
matches!(state, BobState::XmrLocked(..))
}
pub fn is_encsig_sent(state: &BobState) -> bool {
matches!(state, BobState::EncSigSent(..))
}
// State machine driver for swap execution
#[allow(clippy::too_many_arguments)]
#[async_recursion]