From f6589407c1be167181814b65b2105bb986c35a61 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Fri, 15 May 2020 13:01:45 -0700 Subject: [PATCH] register secp signatures for lotus bench usage --- cmd/lotus-bench/import.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cmd/lotus-bench/import.go b/cmd/lotus-bench/import.go index c7062fba5..8efe532f4 100644 --- a/cmd/lotus-bench/import.go +++ b/cmd/lotus-bench/import.go @@ -15,6 +15,8 @@ import ( "github.com/filecoin-project/lotus/chain/store" "github.com/filecoin-project/lotus/chain/types" "github.com/filecoin-project/lotus/chain/vm" + _ "github.com/filecoin-project/lotus/lib/sigs/bls" + _ "github.com/filecoin-project/lotus/lib/sigs/secp" "github.com/filecoin-project/sector-storage/ffiwrapper" "github.com/filecoin-project/specs-actors/actors/abi" "golang.org/x/xerrors" @@ -111,7 +113,14 @@ var importBenchCmd = &cli.Command{ cur := tschain[i] log.Infof("computing state (height: %d, ts=%s)", cur.Height(), cur.Cids()) if cur.ParentState() != lastState { - return xerrors.Errorf("tipset chain had state mismatch at height %d", cur.Height()) + lastTrace := out[len(out)-1].Trace + d, err := json.MarshalIndent(lastTrace, "", " ") + if err != nil { + panic(err) + } + fmt.Println("TRACE") + fmt.Println(string(d)) + return xerrors.Errorf("tipset chain had state mismatch at height %d (%s != %s)", cur.Height(), cur.ParentState(), lastState) } start := time.Now() st, trace, err := stm.ExecutionTrace(context.TODO(), cur)