Skip to content

Commit

Permalink
lnwallet: fix linter errors resulting from commitmentChain move.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProofOfKeags committed Jul 30, 2024
1 parent 4cf7555 commit 82ff360
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lnwallet/commitment_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 82ff360

Please sign in to comment.