Skip to content

Commit

Permalink
Pub back in deprecated dust_value
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tcharding committed Mar 22, 2024
1 parent 6ff8505 commit c17db32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bitcoin/src/blockdata/script/borrowed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit c17db32

Please sign in to comment.