bitkit
bitkit copied to clipboard
[Bug]: Transfer activity shows estimated time based on fee rate rather than effective fee rate
Describe the bug
When using an unconfirmed input to establish a new lightning connection, the transfer from savings activity assumes the time taken will be the latest transaction's fee rate but it doesn't take into account the unconfirmed parent. It should estimate based on the effective fee rate.
Note: This wouldn't be a problem if children transactions always aim to match the effective fee rate with current market rate. I.e. an implicit boost.
Reproduce
- Transfer funds from spending so that the fee used will not confirm in next block (idk how you reproduce this but it can happen). In my case the fee rate happened to increase at the same time.
- Create a new self-funded LN connection so that an unconfirmed input from the previous channel close tx is used to fund this
- Observe the activity list, the latest transfer from savings will show estimated time as 10 minutes (unrealistic) and its parent with something higher (more realistic).
Screenshots / Recording
See the inbound transaction for ₿ 194_724 is +2 hours to confirm yet its child for ₿ 165 728 outbound is only 10 minutes.
Operating system
Android 13 TKQ1.221114.001
Bitkit version
v122 01b96914b84df3a2584c71bd9fb6ca5f143709e0
Log output
No response