// Health returns nil if node is online and healthy
Health returns nil if node is online and healthy
// Health returns nil if node is online and healthy
func (ab *AlgorandBuffer) Health() error {
	ctx, cancel := context.WithTimeout(context.Background(), ab.timeoutLength)
	err := ab.Client.HealthCheck(ctx)
	cancel()
	if _, ok := err.(*json.InvalidUnmarshalError); ok {
		return nil
	}
	return err
}
func ( ab * AlgorandBuffer ) Health ( ) error { ctx , cancel := context . WithTimeout ( context . Background ( ) , ab . timeoutLength ) err := ab . Client . HealthCheck ( ctx ) cancel ( ) if _ , ok := err . ( * json . InvalidUnmarshalError ) ; ok { return nil } return err }
Health returns nil if node is online and healthy
Health returns nil if node is online and healthy
// Null-response of health check means node is ok!