|
|
@ -29,7 +29,6 @@ class BumpFeeTest(BitcoinTestFramework):
|
|
|
|
self.num_nodes = 2
|
|
|
|
self.num_nodes = 2
|
|
|
|
self.setup_clean_chain = True
|
|
|
|
self.setup_clean_chain = True
|
|
|
|
self.extra_args = [[
|
|
|
|
self.extra_args = [[
|
|
|
|
"-deprecatedrpc=addwitnessaddress",
|
|
|
|
|
|
|
|
"-walletrbf={}".format(i),
|
|
|
|
"-walletrbf={}".format(i),
|
|
|
|
"-mintxfee=0.00002",
|
|
|
|
"-mintxfee=0.00002",
|
|
|
|
] for i in range(self.num_nodes)]
|
|
|
|
] for i in range(self.num_nodes)]
|
|
|
@ -104,8 +103,7 @@ def test_segwit_bumpfee_succeeds(rbf_node, dest_address):
|
|
|
|
# which spends it, and make sure bumpfee can be called on it.
|
|
|
|
# which spends it, and make sure bumpfee can be called on it.
|
|
|
|
|
|
|
|
|
|
|
|
segwit_in = next(u for u in rbf_node.listunspent() if u["amount"] == Decimal("0.001"))
|
|
|
|
segwit_in = next(u for u in rbf_node.listunspent() if u["amount"] == Decimal("0.001"))
|
|
|
|
segwit_out = rbf_node.getaddressinfo(rbf_node.getnewaddress())
|
|
|
|
segwit_out = rbf_node.getaddressinfo(rbf_node.getnewaddress(address_type='p2sh-segwit'))
|
|
|
|
rbf_node.addwitnessaddress(segwit_out["address"])
|
|
|
|
|
|
|
|
segwitid = send_to_witness(
|
|
|
|
segwitid = send_to_witness(
|
|
|
|
use_p2wsh=False,
|
|
|
|
use_p2wsh=False,
|
|
|
|
node=rbf_node,
|
|
|
|
node=rbf_node,
|
|
|
|