def test_bumpfee_with_descendant_fails(rbf_node, rbf_node_address, dest_address):
    parent_id = create_fund_sign_send(rbf_node, {rbf_node_address: 0.05})
    tx = rbf_node.createrawtransaction([{'txid': parent_id, 'vout': 0}], {dest_address: 0.02})
    tx = rbf_node.signrawtransaction(tx)
    txid = rbf_node.sendrawtransaction(tx['hex'])
    assert_raises_message(JSONRPCException, 'Transaction has descendants in the wallet', rbf_node.bumpfee, parent_id)
def test_bumpfee_with_descendant_fails(rbf_node, rbf_node_address, dest_address):
    parent_id = create_fund_sign_send(rbf_node, {rbf_node_address: 0.05})
    tx = rbf_node.createrawtransaction([{'txid': parent_id, 'vout': 0}], {dest_address: 0.02})
    tx = rbf_node.signrawtransaction(tx)
    txid = rbf_node.sendrawtransaction(tx['hex'])
    assert_raises_message(JSONRPCException, 'Transaction has descendants in the wallet', rbf_node.bumpfee, parent_id)