diff --git a/challenger/challenger.go b/challenger/challenger.go index 35ee52d..7dedf0b 100644 --- a/challenger/challenger.go +++ b/challenger/challenger.go @@ -231,7 +231,9 @@ func (c *Challenger) RegisterQuerier() { if err != nil { return err } - return ctx.JSON(*status.Host.Node.Syncing && *status.Child.Node.Syncing) + hostSync := status.Host.Node.Syncing != nil && *status.Host.Node.Syncing + childSync := status.Child.Node.Syncing != nil && *status.Child.Node.Syncing + return ctx.JSON(hostSync || childSync) }) } diff --git a/executor/querier.go b/executor/querier.go index 2cacf34..e77bf90 100644 --- a/executor/querier.go +++ b/executor/querier.go @@ -74,6 +74,6 @@ func (ex *Executor) RegisterQuerier() { hostSync := status.Host.Node.Syncing != nil && *status.Host.Node.Syncing childSync := status.Child.Node.Syncing != nil && *status.Child.Node.Syncing batchSync := status.BatchSubmitter.Node.Syncing != nil && *status.BatchSubmitter.Node.Syncing - return c.JSON(hostSync && childSync && batchSync) + return c.JSON(hostSync || childSync || batchSync) }) }