channeldb: make chanStatus unexported
Since the ChanStatus field can be changed from concurrent callers, we make it unexported and add the method ChanStatus() for safe retrieval.
This commit is contained in:
3 files changed
+20
-12
No files matched your search
+1
-1
@@ -456,7 +456,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() != Default
|
||||
|
||||
// Only include it if we requested
|
||||
// channels with the same waitingClose
|
||||
|
||||
Reference in new issue
Block a user