Bitcoin Dust constant justification, median_fee fn

This commit is contained in:
Luke Parker
2023-10-22 06:52:13 -04:00
parent e5113c333e
commit 83c41eccd4
2 changed files with 62 additions and 9 deletions

View File

@@ -272,6 +272,10 @@ pub trait Network: 'static + Send + Sync + Clone + PartialEq + Eq + Debug {
const MAX_OUTPUTS: usize;
/// Minimum output value which will be handled.
///
/// For any received output, there's the cost to spend the output. This value MUST exceed the
/// cost to spend said output, and should by a notable margin (not just 2x, yet an order of
/// magnitude).
const DUST: u64;
/// Tweak keys for this network.