diff --git a/lnwallet/commitment_chain.go b/lnwallet/commitment_chain.go index 23887815b1..7894e9e3f4 100644 --- a/lnwallet/commitment_chain.go +++ b/lnwallet/commitment_chain.go @@ -42,11 +42,13 @@ func (s *commitmentChain) advanceTail() { // tip returns the latest commitment added to the chain. func (s *commitmentChain) tip() *commitment { + //nolint:forcetypeassert return s.commitments.Back().Value.(*commitment) } // tail returns the lowest unrevoked commitment transaction in the chain. func (s *commitmentChain) tail() *commitment { + //nolint:forcetypeassert return s.commitments.Front().Value.(*commitment) }