Skip to content

Commit

Permalink
Merge #2625: Put back in deprecated dust_value
Browse files Browse the repository at this point in the history
c17db32 Pub back in deprecated dust_value (Tobin C. Harding)

Pull request description:

  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.

  Put back in deprecated `dust_value`, linking to the rename.

  Renamed in #2255, found while testing upgrade of downstream software.

ACKs for top commit:
  tcharding:
    > ACK [c17db32](c17db32) I _think_ this matches the behavior of the old version
  apoelstra:
    ACK c17db32 I *think* this matches the behavior of the old version
  sanket1729:
    ACK c17db32

Tree-SHA512: 28e1bd2e1a0fd13c78c70ad2667b72b3bf649c293201b79c86c00f09d0126389ebaeb430b8dd32aeeec3d60cbd8761ae949f5784a5ea7756b1b9ae77ec96ce61
  • Loading branch information
apoelstra committed Mar 24, 2024
2 parents 1656e1a + c17db32 commit 26248b2
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 @@ -395,6 +395,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 26248b2

Please sign in to comment.