Ride-The-Lightning / RTL

Ride The Lightning - A full function web browser app for LND, C-Lightning and Eclair
MIT License
741 stars 157 forks source link

Setting fee sats/vbyte for closing channel miscalculates actual fee rate #1345

Open abinition opened 8 months ago

abinition commented 8 months ago

Upon closing a channel, (I) selected 50 sats/vbyte, but when transaction was viewed on mempool, it showed 24.4 sats/vbyte. Afterwards, tried doing a "force close" which added a CPFP, this increased fee rate to 47.5 sats/vbyte. Hope it confirms.

Devs should check the math calculation for channel close and apply the correct fee amount from what is selected on web interface.

Hard to reproduce without opening and then closing channels, which costs $$.

Original transaction is ec14e99da2e158bd6aacb4b74292fec1e663453108e5d5d5b9495bacdfd94d88

saubyk commented 8 months ago

Hi @abinition RTL just passes the value user provides in the UI to the API.

Was it a cooperative close or a force close when you first attempted?