def test_notmine_bumpfee_fails(rbf_node, peer_node, dest_address):
    utxos = [node.listunspent()[(- 1)] for node in (rbf_node, peer_node)]
    inputs = [{'txid': utxo['txid'], 'vout': utxo['vout'], 'address': utxo['address'], 'sequence': BIP125_SEQUENCE_NUMBER} for utxo in utxos]
    output_val = (sum((utxo['amount'] for utxo in utxos)) - Decimal('0.1'))
    rawtx = rbf_node.createrawtransaction(inputs, {dest_address: output_val})
    signedtx = rbf_node.signrawtransaction(rawtx)
    signedtx = peer_node.signrawtransaction(signedtx['hex'])
    rbfid = rbf_node.sendrawtransaction(signedtx['hex'])
    assert_raises_message(JSONRPCException, "Transaction contains inputs that don't belong to this wallet", rbf_node.bumpfee, rbfid)
def test_notmine_bumpfee_fails(rbf_node, peer_node, dest_address):
    utxos = [node.listunspent()[(- 1)] for node in (rbf_node, peer_node)]
    inputs = [{'txid': utxo['txid'], 'vout': utxo['vout'], 'address': utxo['address'], 'sequence': BIP125_SEQUENCE_NUMBER} for utxo in utxos]
    output_val = (sum((utxo['amount'] for utxo in utxos)) - Decimal('0.1'))
    rawtx = rbf_node.createrawtransaction(inputs, {dest_address: output_val})
    signedtx = rbf_node.signrawtransaction(rawtx)
    signedtx = peer_node.signrawtransaction(signedtx['hex'])
    rbfid = rbf_node.sendrawtransaction(signedtx['hex'])
    assert_raises_message(JSONRPCException, "Transaction contains inputs that don't belong to this wallet", rbf_node.bumpfee, rbfid)