lnwallet/channel: remove unused arguments

This commit is contained in:
Johan T. Halseth 2018-05-04 13:42:15 +02:00
parent aa1c2cdf81
commit 7e1f2a7dc3
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

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