diff --git a/core/rawdb/plugin_hooks.go b/core/rawdb/plugin_hooks.go index 3de55cc40..523e95deb 100644 --- a/core/rawdb/plugin_hooks.go +++ b/core/rawdb/plugin_hooks.go @@ -43,7 +43,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) { } for i := min ; i < num; i++ { update, ok := freezerUpdates[i] - defer func() { delete(freezerUpdates, i) }() + defer func(i uint64) { delete(freezerUpdates, i) }(i) if !ok { log.Warn("Attempting to commit untracked block", "num", i) continue