mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-26 15:27:19 -05:00
Update swap.rs
This commit is contained in:
parent
07f788eb81
commit
2824ebc893
@ -310,14 +310,16 @@ async fn next_state(
|
|||||||
}
|
}
|
||||||
BobState::BtcRefunded(state4) => BobState::BtcRefunded(state4),
|
BobState::BtcRefunded(state4) => BobState::BtcRefunded(state4),
|
||||||
BobState::BtcPunished { state, tx_lock_id } => {
|
BobState::BtcPunished { state, tx_lock_id } => {
|
||||||
tracing::info!("Attempting cooperative XMR redeem");
|
tracing::info!("Attempting to cooperatively redeem XMR after being punished");
|
||||||
let response = event_loop_handle
|
let response = event_loop_handle
|
||||||
.request_cooperative_xmr_redeem(swap_id)
|
.request_cooperative_xmr_redeem(swap_id)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
match response {
|
match response {
|
||||||
Ok(Fullfilled { s_a, .. }) => {
|
Ok(Fullfilled { s_a, .. }) => {
|
||||||
tracing::debug!("Alice revealed XMR key to us");
|
tracing::info!(
|
||||||
|
"Alice has accepted our request to cooperatively redeem the XMR"
|
||||||
|
);
|
||||||
|
|
||||||
let s_a = monero::PrivateKey { scalar: s_a };
|
let s_a = monero::PrivateKey { scalar: s_a };
|
||||||
let state5 = state.attempt_cooperative_redeem(s_a);
|
let state5 = state.attempt_cooperative_redeem(s_a);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user