Merge pull request #2268 from chunqizhi/zcq02

Add return nil when faults == 0
This commit is contained in:
Łukasz Magiera 2020-07-06 11:14:35 +02:00 committed by GitHub
commit 2f3fc31f11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ var provingFaultsCmd = &cli.Command{
}
if len(faults) == 0 {
fmt.Println("no faulty sectors")
return nil
}
head, err := api.ChainHead(ctx)
if err != nil {