diff --git a/bitcoin/src/blockdata/script/borrowed.rs b/bitcoin/src/blockdata/script/borrowed.rs index a4bb14fb..a0803c8b 100644 --- a/bitcoin/src/blockdata/script/borrowed.rs +++ b/bitcoin/src/blockdata/script/borrowed.rs @@ -385,6 +385,12 @@ impl Script { } } + /// Returns the minimum value an output with this script should have in order to be + /// broadcastable on today’s Bitcoin network. + #[deprecated(since = "0.32.0", note = "use minimal_non_dust and friends")] + pub fn dust_value(&self) -> crate::Amount { self.minimal_non_dust() } + + /// Returns the minimum value an output with this script should have in order to be /// broadcastable on today's Bitcoin network. ///