[Describe]: when excute cmd "lotus-bench sealing" without "benchmark-… #8173
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
when excute cmd "lotus-bench sealing" without "benchmark-existing-sectorbuilder", panic will occur
when don't set env "benchmark-existing-sectorbuilder" or the value of env "benchmark-existing-sectorbuilder" is null
var sealedSectors []saproof7.SectorInfo is not filled value,
wpvi1 := saproof2.WindowPoStVerifyInfo{
Randomness: challenge[:],
Proofs: wproof1,
ChallengedSectors: sealedSectors,
Prover: mid,
}
ok, err = ffiwrapper.ProofVerifier.VerifyWindowPoSt(context.TODO(), wpvi1)
will hanppen
2022-02-22T18:18:58.520+0800 WARN lotus-bench lotus-bench/main.go:117 no replicas supplied
Stack backtrace:
0: anyhow::error::::msg
1: filecoin_proofs_api::post::verify_window_post
2: <std::panic::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once
3: ffi_toolkit::catch_panic_response
4: fil_verify_window_post
5: _cgo_24921690cad9_Cfunc_fil_verify_window_post
at /tmp/go-build/cgo-gcc-prolog:1741
6: runtime.asmcgocall
at /home/xjgw/.gvm/gos/go1.17.1/src/runtime/asm_amd64.s:765
github.com/filecoin-project/filecoin-ffi.VerifyWindowPoSt
/home/xjgw/eben-xgjw-local-network/.opensource-lotus/lotus-project/extern/filecoin-ffi/proofs.go:184
github.com/filecoin-project/lotus/extern/sector-storage/ffiwrapper.proofVerifier.VerifyWindowPoSt
/home/xjgw/eben-xgjw-local-network/.opensource-lotus/lotus-project/extern/sector-storage/ffiwrapper/verifier_cgo.go:163
main.glob..func3
/home/xjgw/eben-xgjw-local-network/.opensource-lotus/lotus-project/cmd/lotus-bench/main.go:428
github.com/urfave/cli/v2.(*Command).Run
/home/xjgw/.gvm/pkgsets/go1.17.1/global/pkg/mod/github.com/urfave/cli/[email protected]/command.go:164
github.com/urfave/cli/v2.(*App).RunContext
/home/xjgw/.gvm/pkgsets/go1.17.1/global/pkg/mod/github.com/urfave/cli/[email protected]/app.go:306
github.com/urfave/cli/v2.(*App).Run
/home/xjgw/.gvm/pkgsets/go1.17.1/global/pkg/mod/github.com/urfave/cli/[email protected]/app.go:215
main.main
/home/xjgw/eben-xgjw-local-network/.opensource-lotus/lotus-project/cmd/lotus-bench/main.go:116
runtime.main
/home/xjgw/.gvm/gos/go1.17.1/src/runtime/proc.go:255
runtime.goexit
/home/xjgw/.gvm/gos/go1.17.1/src/runtime/asm_amd64.s:1581