Show days+hours for force closed channels in channel detail view #525
Description
Atm for force closed channels we show this on the main channel page
As the channel is no longer active and can't be used for payments, we can probably blank out the can send/receive columns.
When users click down in they get this:
As is the ID field is blank, so users are unable to lookup the txid of the closing transaction on chain. Note that this is different from the txid of the funding transaction. We can get the closing txid from the ForceClosedChannel
proto: https://api.lightning.community/#forceclosedchannel
From the same proto, we can also obtain the "blocks until maturity". Atm we don't display any sort of time estimate to when the funds will be swept back into the wallet. On mainnet, this can be anxiety inducing as you don't know when the funds will be swept back into your wallet. We've received a ton of issues just related to users not quite understanding timelocks on lnd
, which caused us to surface more info on the command line.
To start with, we can either display the block of blocks (which at least counts down), or attempt to map the # of blocks to days+hours. One block is 10 mins, and a days worth of blocks is 144, so we can use that as a starting point from there. The goal here to give users this feedback in "dark mode", so we can set proper expectations w.r.t when their funds will be restored.