From: Antoine Riard Date: Tue, 19 Nov 2019 20:53:52 +0000 (-0500) Subject: Add MIN_RELAY_FEE_SAT_PER_1000_WEIGHT X-Git-Tag: v0.0.12~169^2~19 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=201fb4b56a2ba76473ec1a1a993ecf00010d59d6;p=rust-lightning Add MIN_RELAY_FEE_SAT_PER_1000_WEIGHT Hardcode min relay fee as its value is fixed on the bitcoin network and updating it would be done really conservatively. --- diff --git a/lightning/src/chain/chaininterface.rs b/lightning/src/chain/chaininterface.rs index 92c9c1025..ac7ba05a0 100644 --- a/lightning/src/chain/chaininterface.rs +++ b/lightning/src/chain/chaininterface.rs @@ -115,6 +115,9 @@ pub trait FeeEstimator: Sync + Send { fn get_est_sat_per_1000_weight(&self, confirmation_target: ConfirmationTarget) -> u64; } +/// Minimum relay fee as required by bitcoin network mempool policy. +pub const MIN_RELAY_FEE_SAT_PER_1000_WEIGHT: u64 = 4000; + /// Utility for tracking registered txn/outpoints and checking for matches pub struct ChainWatchedUtil { watch_all: bool,