Preemptively box encrypted signature to avoid size difference in enum

This commit is contained in:
Franck Royer 2021-02-04 17:10:18 +11:00
parent fd084b764d
commit 69363e43a3
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
3 changed files with 5 additions and 5 deletions

View file

@ -76,7 +76,7 @@ impl From<&AliceState> for Alice {
encrypted_signature,
} => Alice::EncSigLearned {
state3: state3.as_ref().clone(),
encrypted_signature: encrypted_signature.clone(),
encrypted_signature: *encrypted_signature.clone(),
},
AliceState::BtcRedeemed => Alice::Done(AliceEndState::BtcRedeemed),
AliceState::BtcCancelled { state3, .. } => Alice::BtcCancelled(state3.as_ref().clone()),
@ -135,7 +135,7 @@ impl From<Alice> for AliceState {
encrypted_signature,
} => AliceState::EncSigLearned {
state3: Box::new(state),
encrypted_signature,
encrypted_signature: Box::new(encrypted_signature),
},
Alice::CancelTimelockExpired(state3) => AliceState::CancelTimelockExpired {
state3: Box::new(state3),