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
+1
-3
@@ -5089,9 +5089,7 @@ func NewUnilateralCloseSummary(chanState *channeldb.OpenChannel, signer input.Si
|
||||
}
|
||||
|
||||
// Attempt to add a channel sync message to the close summary.
|
||||
chanSync, err := chanState.ChanSyncMsg(
|
||||
chanState.HasChanStatus(channeldb.ChanStatusRestored),
|
||||
)
|
||||
chanSync, err := chanState.ChanSyncMsg()
|
||||
if err != nil {
|
||||
walletLog.Errorf("ChannelPoint(%v): unable to create channel sync "+
|
||||
"message: %v", chanState.FundingOutpoint, err)
|
||||
|
||||
Reference in new issue
Block a user