Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iljakuklic committed Feb 23, 2024
1 parent 5609502 commit 10cfbb2
Show file tree
Hide file tree
Showing 13 changed files with 1,091 additions and 1,026 deletions.
6 changes: 6 additions & 0 deletions mempool/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ pub const FUTURE_TIMELOCK_TOLERANCE: Duration = Duration::from_secs(5 * 60);

pub const FUTURE_TIMELOCK_TOLERANCE_BLOCKS: BlockDistance = BlockDistance::new(5);

pub const INCREMENTAL_RELAY_FEE_RATE: FeeRate =
FeeRate::from_amount_per_kb(Amount::from_atoms(1000));

pub const INCREMENTAL_RELAY_THRESHOLD: FeeRate =
FeeRate::from_amount_per_kb(Amount::from_atoms(500));

// 10^-3 of a coin per 1000 bytes
make_config_setting!(
MinTxRelayFeeRate,
Expand Down
5 changes: 0 additions & 5 deletions mempool/src/pool/feerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ use crate::error::MempoolPolicyError;

use super::fee::Fee;

pub const INCREMENTAL_RELAY_FEE_RATE: FeeRate =
FeeRate::from_amount_per_kb(Amount::from_atoms(1000));
pub const INCREMENTAL_RELAY_THRESHOLD: FeeRate =
FeeRate::from_amount_per_kb(Amount::from_atoms(500));

#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
pub struct FeeRate {
amount_per_kb: Amount,
Expand Down
Loading

0 comments on commit 10cfbb2

Please sign in to comment.