From 1c59dfc75c42efad0d6c00b74c16531902ebedac Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 26 Feb 2016 16:27:32 -0800 Subject: [PATCH] chainntfs: fix the Pop method on confirmationHeap --- chainntfs/btcdnotify/confheap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chainntfs/btcdnotify/confheap.go b/chainntfs/btcdnotify/confheap.go index b95a92fe..0ac454cf 100644 --- a/chainntfs/btcdnotify/confheap.go +++ b/chainntfs/btcdnotify/confheap.go @@ -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 }