Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Show days+hours for force closed channels in channel detail view #525

Closed
@Roasbeef

Description

@Roasbeef

Atm for force closed channels we show this on the main channel page
screen shot 2018-08-13 at 1 02 03 pm

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:
screen shot 2018-08-13 at 5 03 39 pm

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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions