From d96087a2ea93bc041605534fd5a77c6633d066f8 Mon Sep 17 00:00:00 2001 From: illia-li Date: Wed, 21 Jun 2023 10:37:00 -0400 Subject: [PATCH] fix(store) add nil processing in lt function --- pkg/store/helpers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/store/helpers.go b/pkg/store/helpers.go index 89b2f430..c95546d5 100644 --- a/pkg/store/helpers.go +++ b/pkg/store/helpers.go @@ -75,6 +75,8 @@ func lt(mi, mj map[string]interface{}) bool { case *big.Int: mjs, _ := mj["pk0"].(*big.Int) return mis.Cmp(mjs) < 0 + case nil: + return true default: msg := fmt.Sprintf("unhandled type %T\n", mis) time.Sleep(time.Second)