lnwallet/channel: remove startingHeight from commitmentChain
Field is not being used.
This commit is contained in:
parent
712fc3ebed
commit
5c294601f0
@ -1023,11 +1023,10 @@ type commitmentChain struct {
|
||||
startingHeight uint64
|
||||
}
|
||||
|
||||
// newCommitmentChain creates a new commitment chain from an initial height.
|
||||
func newCommitmentChain(initialHeight uint64) *commitmentChain {
|
||||
// newCommitmentChain creates a new commitment chain.
|
||||
func newCommitmentChain() *commitmentChain {
|
||||
return &commitmentChain{
|
||||
commitments: list.New(),
|
||||
startingHeight: initialHeight,
|
||||
}
|
||||
}
|
||||
|
||||
@ -1381,8 +1380,8 @@ func NewLightningChannel(signer Signer, pCache PreimageCache,
|
||||
Signer: signer,
|
||||
pCache: pCache,
|
||||
currentHeight: localCommit.CommitHeight,
|
||||
remoteCommitChain: newCommitmentChain(remoteCommit.CommitHeight),
|
||||
localCommitChain: newCommitmentChain(localCommit.CommitHeight),
|
||||
remoteCommitChain: newCommitmentChain(),
|
||||
localCommitChain: newCommitmentChain(),
|
||||
channelState: state,
|
||||
localChanCfg: &state.LocalChanCfg,
|
||||
remoteChanCfg: &state.RemoteChanCfg,
|
||||
|
Loading…
Reference in New Issue
Block a user