lnwallet: fix linter errors resulting from commitmentChain move.

This commit is contained in:
Keagan McClelland 2024-07-30 10:22:23 -07:00
parent 4cf7555922
commit 82ff360ad2
No known key found for this signature in database
GPG Key ID: FA7E65C951F12439

View File

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