Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the max zero-conf amount for receive swaps #640

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading