mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 06:21:40 +01:00
lnwallet: fix linter errors resulting from commitmentChain move.
This commit is contained in:
parent
4cf7555922
commit
82ff360ad2
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue