-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Background
When calling the BumpFee API to request a fee bump for an outpoint that is not controlled by the wallet, the API should not return a success message, since it cannot bump the requested outpoint
Your environment
- lnd 0.19.0-beta
Steps to reproduce
- Create a local chain address
- Fund a PSBT paying to this address, but also an external address
- Sign and broadcast this PSBT
- List the UTXOs to see the TX itself is listed as a UTXO
- Call BumpFee, but not on the local chain address output index, on the external address index
- LND will return
Successfully registered CPFP-tx with the sweeper
Example:
Transaction
0200000000010116c14d68dedb139e56c60ee2661e1bdde59202eaeb627eefa1e3e25bb6f59bbb0000000000ffffffff0300e1f505000000001600142c3ca97c9a0c5fd0d849da3aa5a442c09bcc819000e1f5050000000017a914a9974100aeee974a20cda9a2f545704a0ab54fdc87ef1d1a1e010000002251208fc6609ee1600666783c925dc299498b08e8114c905bc47066d1566a944bb5260247304402206e9e18c71dfbdc5522feeed3550a7e64098597aba081d021ecdd66e7a40329ce02202dad0c9573b942304e778afc60c8269cf6207e256bf866142557b27d0fe1bc110121036e93f1bfb734837d87e2e0e1f94af73ee8be3c54307af0e09dc12f3bce28092d00000000
Arguments to BumpFee
{
force: true,
outpoint: {
output_index: 1,
txid_str: '52bc17ef75059b615395c7ce73cb790289f192436ea8b100a6feb628f0224849'
},
target_conf: 6
}
Response from LND
{ status: 'Successfully registered CPFP-tx with the sweeper' }
Expected behavior
Error with message the passed output does not belong to the wallet
Actual behavior
CPFP will actually silently fail since the referenced outpoint is external