Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Jul 8, 2024
1 parent 03644ae commit 14a74e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,10 @@ evm_finality_depth = 200

[CCIP.Env.Network.AnvilConfigs.PRIVATE-CHAIN-1]
block_time = 1
block_gaslimit = 100000000

#
[CCIP.Env.Network.AnvilConfigs.PRIVATE-CHAIN-2]
block_time = 1
block_gaslimit = 100000000

[CCIP.Env.NewCLCluster]
NoOfNodes = 17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,16 @@ evm_finality_depth = 1

[CCIP.Env.Network.AnvilConfigs.PRIVATE-CHAIN-1]
block_time = 1
block_gaslimit = 100000000

#
[CCIP.Env.Network.AnvilConfigs.SLOW-CHAIN-1]
block_time = 12
block_gaslimit = 100000000

[CCIP.Env.Network.AnvilConfigs.SLOW-CHAIN-2]
block_time = 12
block_gaslimit = 100000000

[CCIP.Env.Network.AnvilConfigs.SLOW-CHAIN-3]
block_time = 12
block_gaslimit = 100000000

[CCIP.Env.NewCLCluster]
NoOfNodes = 17
Expand Down
10 changes: 8 additions & 2 deletions integration-tests/ccip-tests/testsetups/test_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,12 @@ func DeployEnvironments(
// if anvilconfig is specified for a network addhelm for anvil
if anvilConfig, exists := testInputs.EnvInput.Network.AnvilConfigs[strings.ToUpper(network.Name)]; exists {
charts = append(charts, foundry.ChartName)
if anvilConfig.BaseFee == nil {
anvilConfig.BaseFee = pointer.ToInt64(1000000)
}
if anvilConfig.BlockGaslimit == nil {
anvilConfig.BlockGaslimit = pointer.ToInt64(40000000)
}
testEnvironment.
AddHelm(foundry.New(&foundry.Props{
NetworkName: network.Name,
Expand All @@ -491,8 +497,8 @@ func DeployEnvironments(
"forkComputeUnitsPerSecond": anvilConfig.ComputePerSecond,
"forkNoRateLimit": anvilConfig.RateLimitDisabled,
"blocksToKeepInMemory": anvilConfig.BlocksToKeepInMem,
"blockGasLimit": fmt.Sprintf("%d", anvilConfig.BlockGaslimit),
"baseFee": fmt.Sprintf("%d", anvilConfig.BaseFee),
"blockGasLimit": fmt.Sprintf("%d", pointer.GetInt64(anvilConfig.BlockGaslimit)),
"baseFee": fmt.Sprintf("%d", pointer.GetInt64(anvilConfig.BaseFee)),
},
"resources": testInputs.GethResourceProfile,
},
Expand Down

0 comments on commit 14a74e5

Please sign in to comment.