From 28996ffb2fb31b00a491e885e636eee96d5b4609 Mon Sep 17 00:00:00 2001 From: Alexader Date: Mon, 21 Dec 2020 22:10:10 +0800 Subject: [PATCH] fix(coreapi): fix wrong chain status --- internal/coreapi/chain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/coreapi/chain.go b/internal/coreapi/chain.go index d8db973..9ce5d21 100644 --- a/internal/coreapi/chain.go +++ b/internal/coreapi/chain.go @@ -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) {