[sync] fix nil pointer when querying /node-sync

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3654/head
Leo Chen 4 years ago
parent a360fd19b0
commit ee1644ce06
  1. 3
      node/node.go

@ -1043,6 +1043,9 @@ func New(
node.serviceManager = service.NewManager()
node.stateSync = node.getStateSync()
node.beaconSync = node.getStateSync()
return &node
}

Loading…
Cancel
Save