mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-19 22:14:28 +01:00
fix expired condition
This commit is contained in:
@@ -197,7 +197,7 @@ impl Swapper for BoltzSwapper {
|
||||
})?;
|
||||
|
||||
info!("locktime info: locktime_from_height = {locktime_from_height:?}, swap_script.locktime = {:?}", swap_script.locktime);
|
||||
if utils::is_locktime_expired(locktime_from_height, swap_script.locktime) {
|
||||
if !utils::is_locktime_expired(locktime_from_height, swap_script.locktime) {
|
||||
return Err(PaymentError::Generic {
|
||||
err: format!(
|
||||
"Cannot refund non-cooperatively. Lock time not elapsed yet. Current tip: {:?}. Script lock time: {:?}",
|
||||
|
||||
Reference in New Issue
Block a user