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) } }