diff --git a/core/rawdb/plugin_hooks.go b/core/rawdb/plugin_hooks.go index 1845408cb..3de55cc40 100644 --- a/core/rawdb/plugin_hooks.go +++ b/core/rawdb/plugin_hooks.go @@ -39,7 +39,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) { if freezerUpdates == nil { freezerUpdates = make(map[uint64]map[string]interface{}) } min := ^uint64(0) for i := range freezerUpdates{ - if min < i { min = i } + if min > i { min = i } } for i := min ; i < num; i++ { update, ok := freezerUpdates[i]