Skip to content

Commit ebbaa69

Browse files
author
Antoine Riard
committed
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.
1 parent be7d3d1 commit ebbaa69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/chain/chaininterface.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ pub trait FeeEstimator: Sync + Send {
115115
fn get_est_sat_per_1000_weight(&self, confirmation_target: ConfirmationTarget) -> u64;
116116
}
117117

118+
/// Minimum relay fee as required by bitcoin network mempool policy.
119+
pub const MIN_RELAY_FEE_SAT_PER_1000_WEIGHT: u64 = 4000;
120+
118121
/// Utility for tracking registered txn/outpoints and checking for matches
119122
pub struct ChainWatchedUtil {
120123
watch_all: bool,

0 commit comments

Comments
 (0)