From 7e1f2a7dc3d16a31893818ffbd8367c3eb617425 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Fri, 4 May 2018 13:42:15 +0200 Subject: [PATCH] lnwallet/channel: remove unused arguments --- lnwallet/channel.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 5bb8add6..6ab16c9a 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -1368,9 +1368,7 @@ func NewLightningChannel(signer Signer, pCache PreimageCache, // With the main channel struct reconstructed, we'll now restore the // commitment state in memory and also the update logs themselves. - err := lc.restoreCommitState( - &localCommit, &remoteCommit, localUpdateLog, remoteUpdateLog, - ) + err := lc.restoreCommitState(&localCommit, &remoteCommit) if err != nil { return nil, err } @@ -1579,8 +1577,7 @@ func (lc *LightningChannel) logUpdateToPayDesc(logUpdate *channeldb.LogUpdate, // to re-sync states with the remote party, and also verify/extend new proposed // commitment states. func (lc *LightningChannel) restoreCommitState( - localCommitState, remoteCommitState *channeldb.ChannelCommitment, - localUpdateLog, remoteUpdateLog *updateLog) error { + localCommitState, remoteCommitState *channeldb.ChannelCommitment) error { // In order to reconstruct the pkScripts on each of the pending HTLC // outputs (if any) we'll need to regenerate the current revocation for