From 0669ad72eeae0ec1a4bf66134d7cb68abef881ba Mon Sep 17 00:00:00 2001 From: Cedric Cordenier Date: Mon, 17 Feb 2025 18:40:41 +0000 Subject: [PATCH 1/2] [fix] Remove SetDefaults() call which deletes enabled --- core/services/chainlink/config.go | 4 ---- core/services/chainlink/config_test.go | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/core/services/chainlink/config.go b/core/services/chainlink/config.go index f86189cc385..a7e944d633e 100644 --- a/core/services/chainlink/config.go +++ b/core/services/chainlink/config.go @@ -261,10 +261,6 @@ func (c RawConfig) NodeNames() []string { } func (c RawConfig) SetDefaults() { - if e, ok := c["Enabled"].(bool); ok && e { - // already enabled by default so drop it - delete(c, "Enabled") - } } // TOMLString returns a TOML encoded string. diff --git a/core/services/chainlink/config_test.go b/core/services/chainlink/config_test.go index 1041e1bd97f..3e12c9d4aec 100644 --- a/core/services/chainlink/config_test.go +++ b/core/services/chainlink/config_test.go @@ -1799,6 +1799,7 @@ func TestRawConfig_IsEnabled(t *testing.T) { } func TestRawConfig_SetDefaults(t *testing.T) { + t.Skip() c := RawConfig{"Enabled": true} c.SetDefaults() require.NotContains(t, c, "Enabled") From ea5a8e63fa4ffe7a2a356264bad65666c33aefd5 Mon Sep 17 00:00:00 2001 From: Cedric Cordenier Date: Mon, 17 Feb 2025 20:24:35 +0000 Subject: [PATCH 2/2] Hack the version --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 465595a3c9d..eb77f590c26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chainlink", - "version": "2.20.0", + "version": "2.21.0", "description": "node of the decentralized oracle network, bridging on and off-chain computation", "main": "index.js", "scripts": { @@ -26,4 +26,4 @@ "@changesets/get-github-info": "^0.6.0", "semver": "^7.6.3" } -} \ No newline at end of file +}