From c17db32df3425a294e5781ef6cb5e4cbd2b807d4 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sat, 23 Mar 2024 05:32:15 +1100 Subject: [PATCH] Pub back in deprecated dust_value When we renamed `dust_value` to `minimal_non_dust` we forgot to keep the original and deprecated it, doing so assists with the upgrade path. Pub back in deprecated `dust_value`, linking to the rename. --- bitcoin/src/blockdata/script/borrowed.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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. ///