mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
lnwallet: fix linter errors resulting from commitmentChain move.
This commit is contained in:
parent
4cf7555922
commit
82ff360ad2
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user