error check

This commit is contained in:
waynewyang 2020-06-10 20:34:04 +08:00
parent 6d90f12bb6
commit e2d2af3afa

View File

@ -883,6 +883,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")