File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -2073,6 +2073,24 @@ fn test_bump_fee_zero_abs() {
2073
2073
builder. finish ( ) . unwrap ( ) ;
2074
2074
}
2075
2075
2076
+ #[ test]
2077
+ #[ should_panic( expected = "FeeTooLow" ) ]
2078
+ fn test_legacy_bump_fee_zero_abs ( ) {
2079
+ let ( mut wallet, _) = get_funded_wallet_single ( get_test_pkh ( ) ) ;
2080
+ let addr = wallet. next_unused_address ( KeychainKind :: External ) ;
2081
+ let mut builder = wallet. build_tx ( ) ;
2082
+ builder. add_recipient ( addr. script_pubkey ( ) , Amount :: from_sat ( 25_000 ) ) ;
2083
+ let psbt = builder. finish ( ) . unwrap ( ) ;
2084
+
2085
+ let tx = psbt. extract_tx ( ) . expect ( "failed to extract tx" ) ;
2086
+ let txid = tx. compute_txid ( ) ;
2087
+ insert_tx ( & mut wallet, tx) ;
2088
+
2089
+ let mut builder = wallet. build_fee_bump ( txid) . unwrap ( ) ;
2090
+ builder. fee_absolute ( Amount :: ZERO ) ;
2091
+ builder. finish ( ) . unwrap ( ) ;
2092
+ }
2093
+
2076
2094
#[ test]
2077
2095
fn test_bump_fee_reduce_change ( ) {
2078
2096
let ( mut wallet, _) = get_funded_wallet_wpkh ( ) ;
You can’t perform that action at this time.
0 commit comments