Use Message4

This commit is contained in:
Franck Royer 2021-01-22 14:21:27 +11:00
parent 124d6f1ebb
commit d2a1937f51
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
13 changed files with 211 additions and 107 deletions

View file

@ -83,7 +83,7 @@ impl From<Alice> for AliceState {
match db_state {
Alice::Started { amounts, state0 } => AliceState::Started { amounts, state0 },
Alice::Negotiated(state3) => AliceState::Negotiated {
channel: None,
bob_peer_id: None,
amounts: SwapAmounts {
btc: state3.btc,
xmr: state3.xmr,
@ -91,7 +91,7 @@ impl From<Alice> for AliceState {
state3: Box::new(state3),
},
Alice::BtcLocked(state3) => AliceState::BtcLocked {
channel: None,
bob_peer_id: None,
amounts: SwapAmounts {
btc: state3.btc,
xmr: state3.xmr,