From 77713245a1a5d52d1a1703a5e867406644cc52d7 Mon Sep 17 00:00:00 2001 From: Aleksandr Bukata Date: Tue, 2 Jul 2024 19:06:45 +0100 Subject: [PATCH] fix docs test --- core/config/docs/core.toml | 4 ++-- .../headreporter/prometheus_reporter_test.go | 3 ++- docs/CONFIG.md | 13 +++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/core/config/docs/core.toml b/core/config/docs/core.toml index 856c033aaa3..222c9ccdf2f 100644 --- a/core/config/docs/core.toml +++ b/core/config/docs/core.toml @@ -651,5 +651,5 @@ TransmitQueueMaxSize = 10_000 # Default TransmitTimeout = "5s" # Default [HeadReport] -# Head report telemetry collects information about new blocks from blockchain -TelemetryEnabled = false # Default \ No newline at end of file +# TelemetryEnabled controls if it collects information about new blocks from blockchain +TelemetryEnabled = false # Default diff --git a/core/services/headreporter/prometheus_reporter_test.go b/core/services/headreporter/prometheus_reporter_test.go index 75ea9f8e028..131805cd7a5 100644 --- a/core/services/headreporter/prometheus_reporter_test.go +++ b/core/services/headreporter/prometheus_reporter_test.go @@ -1,10 +1,11 @@ package headreporter_test import ( - "github.com/smartcontractkit/chainlink/v2/core/logger" "math/big" "testing" + "github.com/smartcontractkit/chainlink/v2/core/logger" + "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" diff --git a/docs/CONFIG.md b/docs/CONFIG.md index 7a4d3ca62ca..7c45c3d49e6 100644 --- a/docs/CONFIG.md +++ b/docs/CONFIG.md @@ -1761,6 +1761,19 @@ TransmitTimeout controls how long the transmitter will wait for a response when sending a message to the mercury server, before aborting and considering the transmission to be failed. +## HeadReport +```toml +[HeadReport] +TelemetryEnabled = false # Default +``` + + +### TelemetryEnabled +```toml +TelemetryEnabled = false # Default +``` +TelemetryEnabled controls if it collects information about new blocks from blockchain + ## EVM EVM defaults depend on ChainID: