From ecebf07b7d54ec8d28a75d07e278b08ece8d1faa Mon Sep 17 00:00:00 2001 From: Piotr Macek <4007944+piotrm50@users.noreply.github.com> Date: Fri, 19 Apr 2024 10:47:20 +0200 Subject: [PATCH] Delete correct spend unhook. --- pkg/protocol/engine/mempool/spenddag/spenddagv1/spenddag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/protocol/engine/mempool/spenddag/spenddagv1/spenddag.go b/pkg/protocol/engine/mempool/spenddag/spenddagv1/spenddag.go index 47e93973b..2426c7b77 100644 --- a/pkg/protocol/engine/mempool/spenddag/spenddagv1/spenddag.go +++ b/pkg/protocol/engine/mempool/spenddag/spenddagv1/spenddag.go @@ -416,7 +416,7 @@ func (c *SpendDAG[SpenderID, ResourceID, VoteRank]) evictSpender(spenderID Spend unhookFunc, unhookExists := c.spendUnhooks.Get(spenderID) if unhookExists { unhookFunc() - c.spendUnhooks.Delete(spenderID) + c.spendUnhooks.Delete(evictedSpenderID) } }