mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 06:22:39 -04:00
Change warning to error when Bob's refund after t2 failed
This commit is contained in:
parent
7a740e876e
commit
1cb0c4fc83
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ use async_recursion::async_recursion;
|
||||||
use rand::{CryptoRng, RngCore};
|
use rand::{CryptoRng, RngCore};
|
||||||
use std::{convert::TryFrom, fmt, sync::Arc};
|
use std::{convert::TryFrom, fmt, sync::Arc};
|
||||||
use tokio::select;
|
use tokio::select;
|
||||||
use tracing::{info, warn};
|
use tracing::{error, info};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
use xmr_btc::{
|
use xmr_btc::{
|
||||||
bob::{self, State2},
|
bob::{self, State2},
|
||||||
|
@ -407,7 +407,7 @@ where
|
||||||
match refund_result {
|
match refund_result {
|
||||||
Ok(()) => BobState::BtcRefunded(state),
|
Ok(()) => BobState::BtcRefunded(state),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
warn!("Bob tried to refund after T2 has passed, but sending the refund tx errored with {}", err);
|
error!("Bob tried to refund after T2 has passed, but sending the refund tx errored with {}", err);
|
||||||
BobState::Punished
|
BobState::Punished
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue