def test_small_output_fails(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')})
    rbf_node.bumpfee(rbfid, {'totalFee': 2000000})
    rbfid = spend_one_input(rbf_node, Decimal('0.100000'), {dest_address: 0.08, get_change_address(rbf_node): Decimal('0.010000')})
    assert_raises_message(JSONRPCException, 'Change output is too small', rbf_node.bumpfee, rbfid, {'totalFee': 2000001})
def test_small_output_fails(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')})
    rbf_node.bumpfee(rbfid, {'totalFee': 2000000})
    rbfid = spend_one_input(rbf_node, Decimal('0.100000'), {dest_address: 0.08, get_change_address(rbf_node): Decimal('0.010000')})
    assert_raises_message(JSONRPCException, 'Change output is too small', rbf_node.bumpfee, rbfid, {'totalFee': 2000001})