From 4afbfaa3bcfc87a6e8969a0183197bfe46775a3c Mon Sep 17 00:00:00 2001 From: Ross Savage Date: Mon, 6 Jan 2025 10:17:29 +0100 Subject: [PATCH] Increase the max zero-conf amount for receive swaps --- .../langs/flutter/breez_sdk_liquid/include/breez_sdk_liquid.h | 2 +- lib/core/src/receive_swap.rs | 2 +- packages/dart/lib/src/frb_generated.io.dart | 2 +- .../flutter/lib/flutter_breez_liquid_bindings_generated.dart | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bindings/langs/flutter/breez_sdk_liquid/include/breez_sdk_liquid.h b/lib/bindings/langs/flutter/breez_sdk_liquid/include/breez_sdk_liquid.h index 5a6eafade..0ef67bc58 100644 --- a/lib/bindings/langs/flutter/breez_sdk_liquid/include/breez_sdk_liquid.h +++ b/lib/bindings/langs/flutter/breez_sdk_liquid/include/breez_sdk_liquid.h @@ -32,7 +32,7 @@ typedef struct _Dart_Handle* Dart_Handle; /** * The maximum acceptable amount in satoshi when claiming using zero-conf */ -#define DEFAULT_ZERO_CONF_MAX_SAT 100000 +#define DEFAULT_ZERO_CONF_MAX_SAT 1000000 /** * Number of blocks to monitor a swap after its timeout block height diff --git a/lib/core/src/receive_swap.rs b/lib/core/src/receive_swap.rs index 186582149..f6089439a 100644 --- a/lib/core/src/receive_swap.rs +++ b/lib/core/src/receive_swap.rs @@ -22,7 +22,7 @@ use crate::{ pub const DEFAULT_ZERO_CONF_MIN_FEE_RATE_TESTNET: u32 = 100; pub const DEFAULT_ZERO_CONF_MIN_FEE_RATE_MAINNET: u32 = 10; /// The maximum acceptable amount in satoshi when claiming using zero-conf -pub const DEFAULT_ZERO_CONF_MAX_SAT: u64 = 100_000; +pub const DEFAULT_ZERO_CONF_MAX_SAT: u64 = 1_000_000; pub(crate) struct ReceiveSwapHandler { config: Config, diff --git a/packages/dart/lib/src/frb_generated.io.dart b/packages/dart/lib/src/frb_generated.io.dart index ddaf430a5..bb5def399 100644 --- a/packages/dart/lib/src/frb_generated.io.dart +++ b/packages/dart/lib/src/frb_generated.io.dart @@ -6932,6 +6932,6 @@ const int DEFAULT_ZERO_CONF_MIN_FEE_RATE_TESTNET = 100; const int DEFAULT_ZERO_CONF_MIN_FEE_RATE_MAINNET = 10; -const int DEFAULT_ZERO_CONF_MAX_SAT = 100000; +const int DEFAULT_ZERO_CONF_MAX_SAT = 1000000; const int CHAIN_SWAP_MONITORING_PERIOD_BITCOIN_BLOCKS = 4320; diff --git a/packages/flutter/lib/flutter_breez_liquid_bindings_generated.dart b/packages/flutter/lib/flutter_breez_liquid_bindings_generated.dart index fd0cfb0f0..7c293f582 100644 --- a/packages/flutter/lib/flutter_breez_liquid_bindings_generated.dart +++ b/packages/flutter/lib/flutter_breez_liquid_bindings_generated.dart @@ -5449,6 +5449,6 @@ const int DEFAULT_ZERO_CONF_MIN_FEE_RATE_TESTNET = 100; const int DEFAULT_ZERO_CONF_MIN_FEE_RATE_MAINNET = 10; -const int DEFAULT_ZERO_CONF_MAX_SAT = 100000; +const int DEFAULT_ZERO_CONF_MAX_SAT = 1000000; const int CHAIN_SWAP_MONITORING_PERIOD_BITCOIN_BLOCKS = 4320;