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:
Olaoluwa Osuntokun
2018-12-09 19:21:34 -08:00
parent f4054d2a66
commit f57f40e767
3 changed files with 33 additions and 26 deletions

View File

@@ -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