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 // With the main channel struct reconstructed, we'll now restore the
// commitment state in memory and also the update logs themselves. // commitment state in memory and also the update logs themselves.
err := lc.restoreCommitState( err := lc.restoreCommitState(&localCommit, &remoteCommit)
&localCommit, &remoteCommit, localUpdateLog, remoteUpdateLog,
)
if err != nil { if err != nil {
return nil, err 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 // to re-sync states with the remote party, and also verify/extend new proposed
// commitment states. // commitment states.
func (lc *LightningChannel) restoreCommitState( func (lc *LightningChannel) restoreCommitState(
localCommitState, remoteCommitState *channeldb.ChannelCommitment, localCommitState, remoteCommitState *channeldb.ChannelCommitment) error {
localUpdateLog, remoteUpdateLog *updateLog) error {
// In order to reconstruct the pkScripts on each of the pending HTLC // In order to reconstruct the pkScripts on each of the pending HTLC
// outputs (if any) we'll need to regenerate the current revocation for // outputs (if any) we'll need to regenerate the current revocation for