mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-04 18:13:33 +02:00
channeldb: add prefix naming to ChannelStatus enum variables
In this commit, we add a prefix naming scheme to the ChannelStatus enum variables. We do this as it enables outside callers to more easily identify each individual enum variable as a part of the greater enum-like type.
This commit is contained in:
@@ -531,7 +531,7 @@ func fetchChannels(d *DB, pending, waitingClose bool) ([]*OpenChannel, error) {
|
||||
// than Default, then it means it is
|
||||
// waiting to be closed.
|
||||
channelWaitingClose :=
|
||||
channel.ChanStatus() != Default
|
||||
channel.ChanStatus() != ChanStatusDefault
|
||||
|
||||
// Only include it if we requested
|
||||
// channels with the same waitingClose
|
||||
|
Reference in New Issue
Block a user