Merge pull request #296 from meshplus/fix/abnormal-status
fix(coreapi): fix wrong chain status
This commit is contained in:
commit
911fb8cbc0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue