Skip to content

Commit

Permalink
Add NewHeadsPollInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Jan 21, 2025
1 parent 3216b9c commit 41f381c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/services/chainlink/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ var (
SyncThreshold: ptr[uint32](5),
NodeIsSyncingEnabled: ptr(false),
LeaseDuration: &minute,
NewHeadsPollInterval: &second,
FinalizedBlockPollInterval: &second,
EnforceRepeatableRead: ptr(true),
DeathDeclarationDelay: &minute,
Expand Down Expand Up @@ -208,6 +209,7 @@ var (
SyncThreshold: ptr[uint32](5),
NodeIsSyncingEnabled: ptr(false),
LeaseDuration: &minute,
NewHeadsPollInterval: &second,
FinalizedBlockPollInterval: &second,
EnforceRepeatableRead: ptr(true),
DeathDeclarationDelay: &minute,
Expand Down Expand Up @@ -778,6 +780,7 @@ func TestConfig_Marshal(t *testing.T) {
SyncThreshold: ptr[uint32](5),
NodeIsSyncingEnabled: ptr(false),
LeaseDuration: &minute,
NewHeadsPollInterval: &second,
FinalizedBlockPollInterval: &second,
EnforceRepeatableRead: ptr(true),
DeathDeclarationDelay: &minute,
Expand Down Expand Up @@ -1312,6 +1315,7 @@ SelectionMode = 'HighestHead'
SyncThreshold = 5
NodeIsSyncingEnabled = false
LeaseDuration = '1m0s'
NewHeadsPollInterval = '1s'
FinalizedBlockPollInterval = '1s'
EnforceRepeatableRead = true
DeathDeclarationDelay = '1m0s'
Expand Down
1 change: 1 addition & 0 deletions core/services/chainlink/testdata/config-full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ SelectionMode = 'HighestHead'
SyncThreshold = 5
NodeIsSyncingEnabled = false
LeaseDuration = '1m0s'
NewHeadsPollInterval = '1s'
FinalizedBlockPollInterval = '1s'
EnforceRepeatableRead = true
DeathDeclarationDelay = '1m0s'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ SelectionMode = 'HighestHead'
SyncThreshold = 5
NodeIsSyncingEnabled = false
LeaseDuration = '1m0s'
NewHeadsPollInterval = '1s'
FinalizedBlockPollInterval = '1s'
EnforceRepeatableRead = true
DeathDeclarationDelay = '1m0s'
Expand Down Expand Up @@ -741,6 +742,7 @@ SelectionMode = 'HighestHead'
SyncThreshold = 5
NodeIsSyncingEnabled = false
LeaseDuration = '1m0s'
NewHeadsPollInterval = '1s'
FinalizedBlockPollInterval = '1s'
EnforceRepeatableRead = true
DeathDeclarationDelay = '1m0s'
Expand Down
2 changes: 2 additions & 0 deletions core/services/chainlink/testdata/config-multi-chain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ SelectionMode = 'HighestHead'
SyncThreshold = 5
NodeIsSyncingEnabled = false
LeaseDuration = '1m0s'
NewHeadsPollInterval = '1s'
FinalizedBlockPollInterval = '1s'
EnforceRepeatableRead = true
DeathDeclarationDelay = '1m0s'
Expand All @@ -124,6 +125,7 @@ SelectionMode = 'HighestHead'
SyncThreshold = 5
NodeIsSyncingEnabled = false
LeaseDuration = '1m0s'
NewHeadsPollInterval = '1s'
FinalizedBlockPollInterval = '1s'
EnforceRepeatableRead = true
DeathDeclarationDelay = '1m0s'
Expand Down
3 changes: 2 additions & 1 deletion deployment/environment/memory/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/loop"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/tests"
mnCfg "github.com/smartcontractkit/chainlink-framework/multinode/config"

solcfg "github.com/smartcontractkit/chainlink-solana/pkg/solana/config"

Expand Down Expand Up @@ -417,7 +418,7 @@ func createSolanaChainConfig(chainID string, chain deployment.SolChain) *solcfg.
ChainID: &chainID,
Enabled: ptr(true),
Chain: chainConfig,
MultiNode: solcfg.MultiNodeConfig{},
MultiNode: mnCfg.MultiNodeConfig{},
Nodes: []*solcfg.Node{{
Name: ptr("primary"),
URL: url,
Expand Down

0 comments on commit 41f381c

Please sign in to comment.