Skip to content

Commit 46a0c68

Browse files
committed
simulators/ethereum/engine: Add ForkConfig to environment
1 parent 579fd64 commit 46a0c68

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

simulators/ethereum/engine/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ func addTestsToSuite(sim *hivesim.Simulation, suite *hivesim.Suite, tests []test
163163
t,
164164
c,
165165
genesis,
166+
&forkConfig,
166167
newParams,
167168
testFiles,
168169
)

simulators/ethereum/engine/suites/sync/tests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func AddSyncTestsToSuite(sim *hivesim.Simulation, suite *hivesim.Suite, tests []
9999
}
100100

101101
// Run the test case
102-
test.Run(currentTest, big.NewInt(ttd), timeout, t, c, &genesis, syncClientParams, testFiles.Copy())
102+
test.Run(currentTest, big.NewInt(ttd), timeout, t, c, &genesis, nil, syncClientParams, testFiles.Copy())
103103
},
104104
})
105105
}

simulators/ethereum/engine/test/env.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ type Env struct {
4141

4242
// Client parameters used to launch the default client
4343
Genesis *core.Genesis
44+
ForkConfig *globals.ForkConfig
4445
ClientParams hivesim.Params
4546
ClientFiles hivesim.Params
4647

4748
// Sets the type of transactions to use during the test
4849
TestTransactionType helper.TestTransactionType
4950
}
5051

51-
func Run(testSpec SpecInterface, ttd *big.Int, timeout time.Duration, t *hivesim.T, c *hivesim.Client, genesis *core.Genesis, cParams hivesim.Params, cFiles hivesim.Params) {
52+
func Run(testSpec SpecInterface, ttd *big.Int, timeout time.Duration, t *hivesim.T, c *hivesim.Client, genesis *core.Genesis, forkConfig *globals.ForkConfig, cParams hivesim.Params, cFiles hivesim.Params) {
5253
// Setup the CL Mocker for this test
5354
consensusConfig := testSpec.GetConsensusConfig()
5455
clMocker := clmock.NewCLMocker(
@@ -87,6 +88,7 @@ func Run(testSpec SpecInterface, ttd *big.Int, timeout time.Duration, t *hivesim
8788
HiveEngine: ec,
8889
CLMock: clMocker,
8990
Genesis: genesis,
91+
ForkConfig: forkConfig,
9092
ClientParams: cParams,
9193
ClientFiles: cFiles,
9294
TestTransactionType: testSpec.GetTestTransactionType(),

0 commit comments

Comments
 (0)