fix(coreapi): fix wrong chain status

This commit is contained in:
Alexader 2020-12-21 22:10:10 +08:00
parent 45985a7b28
commit 28996ffb2f
1 changed files with 2 additions and 2 deletions

View File

@ -16,10 +16,10 @@ var _ api.ChainAPI = (*ChainAPI)(nil)
func (api *ChainAPI) Status() string {
err := api.bxh.Order.Ready()
if err != nil {
return "normal"
return "abnormal"
}
return "abnormal"
return "normal"
}
func (api *ChainAPI) Meta() (*pb.ChainMeta, error) {