Merge pull request #296 from meshplus/fix/abnormal-status

fix(coreapi): fix wrong chain status
This commit is contained in:
Aiden X 2020-12-22 00:16:57 +08:00 committed by GitHub
commit 911fb8cbc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {