Change warning to error when Bob's refund after t2 failed

This commit is contained in:
Daniel Karzel 2020-12-23 12:36:33 +11:00 committed by Daniel Karzel
parent 7a740e876e
commit 1cb0c4fc83

View file

@ -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
} }
} }