mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
chainntfs: fix the Pop method on confirmationHeap
This commit is contained in:
parent
25c1b7a491
commit
1c59dfc75c
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ func (c *confirmationHeap) Push(x interface{}) {
|
|||
func (c *confirmationHeap) Pop() interface{} {
|
||||
n := len(c.items)
|
||||
x := c.items[n-1]
|
||||
c.items[n-1] = nil
|
||||
c.items = c.items[0 : n-1]
|
||||
c.items[n] = nil
|
||||
return x
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue