Skip to content

Commit 9001a2c

Browse files
authored
Merge branch 'develop' into TT-1049-Provide-e2e-coverage-reports-for-docker-tests
2 parents cd3b8f5 + f0439ec commit 9001a2c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+305
-920
lines changed

.changeset/brown-penguins-grin.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"chainlink": patch
3+
---
4+
5+
Fix in memory data source cache changes/bug that only allowed pipeline results where none of the data sources failed. #bugfix

.changeset/four-shoes-trade.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"chainlink": patch
3+
---
4+
5+
Removed AppConfig from Evm config #internal

core/chains/evm/config/chain_scoped.go

+1-27
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,21 @@ import (
44
"math/big"
55
"time"
66

7-
"go.uber.org/multierr"
8-
9-
ocr "github.com/smartcontractkit/libocr/offchainreporting"
10-
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting/types"
11-
127
"github.com/smartcontractkit/chainlink-common/pkg/assets"
138
"github.com/smartcontractkit/chainlink-common/pkg/logger"
149

1510
commonconfig "github.com/smartcontractkit/chainlink/v2/common/config"
1611
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/config/toml"
17-
"github.com/smartcontractkit/chainlink/v2/core/config"
1812
)
1913

20-
func NewTOMLChainScopedConfig(appCfg config.AppConfig, tomlConfig *toml.EVMConfig, lggr logger.Logger) *ChainScoped {
14+
func NewTOMLChainScopedConfig(tomlConfig *toml.EVMConfig, lggr logger.Logger) *ChainScoped {
2115
return &ChainScoped{
22-
AppConfig: appCfg,
2316
evmConfig: &EVMConfig{C: tomlConfig},
2417
lggr: lggr}
2518
}
2619

2720
// ChainScoped implements config.ChainScopedConfig with a gencfg.BasicConfig and EVMConfig.
2821
type ChainScoped struct {
29-
config.AppConfig
3022
lggr logger.Logger
3123

3224
evmConfig *EVMConfig
@@ -44,24 +36,6 @@ func (c *ChainScoped) BlockEmissionIdleWarningThreshold() time.Duration {
4436
return c.EVM().NodeNoNewHeadsThreshold()
4537
}
4638

47-
func (c *ChainScoped) Validate() (err error) {
48-
// Most per-chain validation is done on startup, but this combines globals as well.
49-
lc := ocrtypes.LocalConfig{
50-
BlockchainTimeout: c.OCR().BlockchainTimeout(),
51-
ContractConfigConfirmations: c.EVM().OCR().ContractConfirmations(),
52-
ContractConfigTrackerPollInterval: c.OCR().ContractPollInterval(),
53-
ContractConfigTrackerSubscribeInterval: c.OCR().ContractSubscribeInterval(),
54-
ContractTransmitterTransmitTimeout: c.EVM().OCR().ContractTransmitterTransmitTimeout(),
55-
DatabaseTimeout: c.EVM().OCR().DatabaseTimeout(),
56-
DataSourceTimeout: c.OCR().ObservationTimeout(),
57-
DataSourceGracePeriod: c.EVM().OCR().ObservationGracePeriod(),
58-
}
59-
if ocrerr := ocr.SanityCheckLocalConfig(lc); ocrerr != nil {
60-
err = multierr.Append(err, ocrerr)
61-
}
62-
return
63-
}
64-
6539
type EVMConfig struct {
6640
C *toml.EVMConfig
6741
}

core/chains/evm/config/config.go

-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
commonconfig "github.com/smartcontractkit/chainlink/v2/common/config"
1212
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/assets"
1313
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/types"
14-
"github.com/smartcontractkit/chainlink/v2/core/config"
1514
)
1615

1716
type EVM interface {
@@ -148,8 +147,5 @@ type NodePool interface {
148147
//
149148
//go:generate mockery --quiet --name ChainScopedConfig --output ./mocks/ --case=underscore
150149
type ChainScopedConfig interface {
151-
config.AppConfig
152-
Validate() error
153-
154150
EVM() EVM
155151
}

0 commit comments

Comments
 (0)