mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 07:56:05 -04:00
fix formatting: delete whitespaces
This commit is contained in:
parent
bf8d12dfa7
commit
7adcf1d29c
@ -124,13 +124,13 @@ pub async fn refund(
|
||||
Err(error) => {
|
||||
if let Ok(error_code) = parse_rpc_error_code(&error) {
|
||||
if error_code == i64::from(RpcErrorCode::RpcVerifyError) {
|
||||
// Check if timelock hasn't expired.
|
||||
// Check if timelock hasn't expired.
|
||||
if let ExpiredTimelocks::None { .. } =
|
||||
state6.expired_timelock(bitcoin_wallet.as_ref()).await?
|
||||
{
|
||||
bail!(error);
|
||||
// Timelock expired and network rejected refund, so we are out-of-sync with Alice. (I assume that there's no other states under these conditions, am I right?)
|
||||
} else {
|
||||
} else {
|
||||
let state = BobState::BtcPunished {
|
||||
tx_lock_id: state6.tx_lock_id(),
|
||||
}; // Set state to punished.
|
||||
|
Loading…
x
Reference in New Issue
Block a user