Skip to content

Commit

Permalink
Increase the max zero-conf amount for receive swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
dangeross committed Jan 6, 2025
1 parent 6d06580 commit 4afbfaa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/core/src/receive_swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/src/frb_generated.io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 4afbfaa

Please sign in to comment.