## [Unreleased]
+## [v0.30.0]
+
+### Summary
+
+This maintenance release updates the project MSRV to 1.63.0 and deprecates `TxBuilder::allow_shrinking()`.
+
## [v0.29.0]
### Summary
[v0.28.1]: https://github.com/bitcoindevkit/bdk/compare/v0.28.0...v0.28.1
[v0.28.2]: https://github.com/bitcoindevkit/bdk/compare/v0.28.1...v0.28.2
[v0.29.0]: https://github.com/bitcoindevkit/bdk/compare/v0.28.2...v0.29.0
-[Unreleased]: https://github.com/bitcoindevkit/bdk/compare/v0.29.0...HEAD
+[v0.30.0]: https://github.com/bitcoindevkit/bdk/compare/v0.29.0...v0.30.0
+[Unreleased]: https://github.com/bitcoindevkit/bdk/compare/v0.30.0...HEAD
assert_eq!(details.fee.unwrap_or(0), 200);
}
+ #[allow(deprecated)]
#[test]
fn test_bump_fee_reduce_single_recipient() {
let (wallet, _, _) = get_funded_wallet(get_test_wpkh());
assert_fee_rate!(psbt, details.fee.unwrap_or(0), FeeRate::from_sat_per_vb(2.5), @add_signature);
}
+ #[allow(deprecated)]
#[test]
fn test_bump_fee_absolute_reduce_single_recipient() {
let (wallet, _, _) = get_funded_wallet(get_test_wpkh());
assert_eq!(details.fee.unwrap_or(0), 300);
}
+ #[allow(deprecated)]
#[test]
fn test_bump_fee_drain_wallet() {
let (wallet, descriptors, _) = get_funded_wallet(get_test_wpkh());
builder.finish().unwrap();
}
+ #[allow(deprecated)]
#[test]
fn test_bump_fee_unconfirmed_input() {
// We create a tx draining the wallet and spending one confirmed
/// `script_pubkey` in order to bump the transaction fee. Without specifying this the wallet
/// will attempt to find a change output to shrink instead.
///
+ /// **Warning**, use with extreme caution. The specified `script_pubkey` will be used _instead_
+ /// of a change address and if the total transaction input amounts are greater than the required
+ /// outputs + transaction fee the remaining change sats will also be sent to this address.
+ ///
/// **Note** that the output may shrink to below the dust limit and therefore be removed. If it is
/// preserved then it is currently not guaranteed to be in the same position as it was
/// originally.
///
/// Returns an `Err` if `script_pubkey` can't be found among the recipients of the
/// transaction we are bumping.
+ #[deprecated(
+ since = "0.30.0",
+ note = "This function will be removed in the next release."
+ )]
pub fn allow_shrinking(&mut self, script_pubkey: ScriptBuf) -> Result<&mut Self, Error> {
match self
.params