Skip to content

[feature]: Include last state in close summary and exportchanbackup #7658

Open
@kroese

Description

@kroese

As described in issue #7426 (comment) there are situations where it would be very helpful if the last state was included in the data of the close summary and/or in exportchanbackup.

Ofcourse this extra data must be totally ignored by all existing commands like restorechanbackup. But in cases were you are 100 percent certain the channel state did not change, you would at least be able to manually extract the state from this data using an external tool like chantools.

I made a very expensive mistake with abandonchannel by assuming exportchanbackup would allow me to restore the state. If the state had been stored in the close summary or in that backup, it would have allowed me to recover my funds.

I cannot think of any downsides by implementing this feature, except for the close summary and the returnvalue of exportchanbackup growing a few bytes in size. Which seems a small tradeoff compared to the advantage it brings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2should be fixed if one has timeSCBRelated to static channel backupbackupsenhancementImprovements to existing features / behaviourrecoveryRelated to the backup/restoration of LND data (e.g. wallet seeds)safetyGeneral label for issues/PRs related to the safety of using the software

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions