channeldb+lnwallet: don't pass isRestoredChan to ChanSyncMsg
Since we have access to the internal state of the channel, we can instead get it directly instead of passing it in as a parameter.
This commit is contained in:
6 files changed
+32
-45
No files matched your search
@@ -454,7 +454,7 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) (
|
||||
// channel reestablish message sent from the peer, but
|
||||
// that's okay since the assumption is that we did when
|
||||
// marking the channel borked.
|
||||
chanSync, err := dbChan.ChanSyncMsg(false)
|
||||
chanSync, err := dbChan.ChanSyncMsg()
|
||||
if err != nil {
|
||||
peerLog.Errorf("Unable to create channel "+
|
||||
"reestablish message for channel %v: "+
|
||||
|
||||
Reference in new issue
Block a user