def test_dust_to_fee(rbf_node, dest_address):
    rbfid = spend_one_input(rbf_node, Decimal('0.100000'), {dest_address: 0.08, get_change_address(rbf_node): Decimal('0.010000')})
    fulltx = rbf_node.getrawtransaction(rbfid, 1)
    bumped_tx = rbf_node.bumpfee(rbfid, {'totalFee': 1990000})
    full_bumped_tx = rbf_node.getrawtransaction(bumped_tx['txid'], 1)
    assert_equal(bumped_tx['fee'], Decimal('0.020000'))
    assert_equal(len(fulltx['vout']), 2)
    assert_equal(len(full_bumped_tx['vout']), 1)
def test_dust_to_fee(rbf_node, dest_address):
    rbfid = spend_one_input(rbf_node, Decimal('0.100000'), {dest_address: 0.08, get_change_address(rbf_node): Decimal('0.010000')})
    fulltx = rbf_node.getrawtransaction(rbfid, 1)
    bumped_tx = rbf_node.bumpfee(rbfid, {'totalFee': 1990000})
    full_bumped_tx = rbf_node.getrawtransaction(bumped_tx['txid'], 1)
    assert_equal(bumped_tx['fee'], Decimal('0.020000'))
    assert_equal(len(fulltx['vout']), 2)
    assert_equal(len(full_bumped_tx['vout']), 1)