error check

This commit is contained in:
waynewyang 2020-06-10 20:34:04 +08:00 committed by Łukasz Magiera
parent 6ba5c5d0e1
commit 27858506ff

View File

@ -889,6 +889,9 @@ var slashConsensusFault = &cli.Command{
BlockHeader1: bh1,
BlockHeader2: bh2,
})
if err != nil {
return err
}
if cctx.String("miner") == "" {
return xerrors.Errorf("--miner flag is required")