aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_bumpfee.py
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-01-08 18:12:57 -0500
committerAndrew Chow <achow101-github@achow101.com>2021-01-08 18:58:58 -0500
commitea0a7ec949f0f7e212f0d8819f7a54cad2258bdd (patch)
tree0e9cb55086e81c0a9d8107f51cf64c367e623ac2 /test/functional/wallet_bumpfee.py
parent9158d6f34153dc937e109d0e7486e956a26f20aa (diff)
downloadbitcoin-ea0a7ec949f0f7e212f0d8819f7a54cad2258bdd.tar.xz
Remove deprecated bumpfee behavior
Diffstat (limited to 'test/functional/wallet_bumpfee.py')
-rwxr-xr-xtest/functional/wallet_bumpfee.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/wallet_bumpfee.py b/test/functional/wallet_bumpfee.py
index c8c1f2e374..5fc8438e8f 100755
--- a/test/functional/wallet_bumpfee.py
+++ b/test/functional/wallet_bumpfee.py
@@ -425,6 +425,9 @@ def test_watchonly_psbt(self, peer_node, rbf_node, dest_address):
original_txid = watcher.sendrawtransaction(psbt_final["hex"])
assert_equal(len(watcher.decodepsbt(psbt)["tx"]["vin"]), 1)
+ # bumpfee can't be used on watchonly wallets
+ assert_raises_rpc_error(-4, "bumpfee is not available with wallets that have private keys disabled. Use psbtbumpfee instead.", watcher.bumpfee, original_txid)
+
# Bump fee, obnoxiously high to add additional watchonly input
bumped_psbt = watcher.psbtbumpfee(original_txid, {"fee_rate": HIGH})
assert_greater_than(len(watcher.decodepsbt(bumped_psbt['psbt'])["tx"]["vin"]), 1)