From 1f9c0f8040f080a629b1e2f1012a13a5f5c11d02 Mon Sep 17 00:00:00 2001 From: zgfzgf <1901989065@qq.com> Date: Tue, 24 Nov 2020 20:27:35 +0800 Subject: [PATCH] update index to sectorNumber --- chain/vm/syscalls.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/chain/vm/syscalls.go b/chain/vm/syscalls.go index bf879f8fc..ba6ee2f1d 100644 --- a/chain/vm/syscalls.go +++ b/chain/vm/syscalls.go @@ -7,29 +7,26 @@ import ( goruntime "runtime" "sync" - "github.com/filecoin-project/go-state-types/network" - - "github.com/filecoin-project/lotus/chain/actors/policy" - - "github.com/filecoin-project/go-address" "github.com/ipfs/go-cid" cbor "github.com/ipfs/go-ipld-cbor" "github.com/minio/blake2b-simd" mh "github.com/multiformats/go-multihash" "golang.org/x/xerrors" + "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/go-state-types/crypto" + "github.com/filecoin-project/go-state-types/network" "github.com/filecoin-project/lotus/chain/actors/adt" "github.com/filecoin-project/lotus/chain/actors/builtin/miner" + "github.com/filecoin-project/lotus/chain/actors/policy" "github.com/filecoin-project/lotus/chain/state" "github.com/filecoin-project/lotus/chain/types" + "github.com/filecoin-project/lotus/extern/sector-storage/ffiwrapper" "github.com/filecoin-project/lotus/lib/sigs" runtime2 "github.com/filecoin-project/specs-actors/v2/actors/runtime" proof2 "github.com/filecoin-project/specs-actors/v2/actors/runtime/proof" - - "github.com/filecoin-project/lotus/extern/sector-storage/ffiwrapper" ) func init() { @@ -306,7 +303,7 @@ func (ss *syscallShim) BatchVerifySeals(inp map[address.Address][]proof2.SealVer sema <- struct{}{} if err := ss.VerifySeal(svi); err != nil { - log.Warnw("seal verify in batch failed", "miner", ma, "index", ix, "err", err) + log.Warnw("seal verify in batch failed", "miner", ma, "sectorNumber", svi.SectorID.Number, "err", err) res[ix] = false } else { res[ix] = true