projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
821357e
)
Add MIN_RELAY_FEE_SAT_PER_1000_WEIGHT
author
Antoine Riard
<ariard@student.42.fr>
Tue, 19 Nov 2019 20:53:52 +0000
(15:53 -0500)
committer
Matt Corallo
<git@bluematt.me>
Tue, 10 Dec 2019 03:19:43 +0000
(22:19 -0500)
Hardcode min relay fee as its value is fixed on the bitcoin network
and updating it would be done really conservatively.
lightning/src/chain/chaininterface.rs
patch
|
blob
|
history
diff --git
a/lightning/src/chain/chaininterface.rs
b/lightning/src/chain/chaininterface.rs
index 92c9c102597b8546e6ca42f3272d5f0cb9e2289f..ac7ba05a037c6b733d0d5f5aaa2274226944c813 100644
(file)
--- 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,