From bb5cc066771cf64b50fbd65a007199689f25e167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 22 Sep 2020 23:33:13 +0200 Subject: [PATCH] Fix workid param hash --- extern/sector-storage/manager_calltracker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extern/sector-storage/manager_calltracker.go b/extern/sector-storage/manager_calltracker.go index 8e3e20c6e..13296a843 100644 --- a/extern/sector-storage/manager_calltracker.go +++ b/extern/sector-storage/manager_calltracker.go @@ -3,6 +3,7 @@ package sectorstorage import ( "context" "crypto/sha256" + "encoding/hex" "encoding/json" "errors" "fmt" @@ -47,7 +48,7 @@ func newWorkID(method string, params ...interface{}) (WorkID, error) { if len(pb) > 256 { s := sha256.Sum256(pb) - pb = s[:] + pb = []byte(hex.EncodeToString(s[:])) } return WorkID{