forked from lightningnetwork/lnd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
channeldb: add method for fetching channels waiting for closing tx
This commit adds a new method FetchWaitingCloseChannels to the database, used for fetching OpenChannels that have a ChanStatus != Default. These are channels that are borked, or have had a commitment broadcasted, and is now waiting for it to confirm. The fetchChannels method is rewritten to return channels exclusively based on wheter they are pending or waitingClose.
- Loading branch information
Showing
1 changed file
with
66 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters