Skip to content

Commit

Permalink
update block validator test
Browse files Browse the repository at this point in the history
  • Loading branch information
amsanghi committed Oct 26, 2023
1 parent b5383bd commit ba0de15
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions system_tests/block_validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,23 @@ func testBlockValidatorSimple(t *testing.T, dasModeString string, workloadLoops
delayEvery = workloadLoops / 3
}

l2info, nodeA, l2client, l1info, _, l1client, l1stack := createTestNodeOnL1WithConfig(t, ctx, true, l1NodeConfigA, nil, chainConfig, nil)
defer requireClose(t, l1stack)
defer nodeA.StopAndWait()

builder := NewNodeBuilder(ctx).DefaultConfig(t, true)
builder.chainConfig = chainConfig
builder.nodeConfig = l1NodeConfigA
builder.L2Info = NewArbTestInfo(t, chainConfig.ChainID)
cleanup := builder.Build(t)
defer cleanup()
l2info, l2client, l1info, l1client := builder.L2Info, builder.L2.Client, builder.L1Info, builder.L1.Client
authorizeDASKeyset(t, ctx, dasSignerKey, l1info, l1client)

validatorConfig := arbnode.ConfigDefaultL1NonSequencerTest()
validatorConfig.BlockValidator.Enable = true
validatorConfig.DataAvailability = l1NodeConfigA.DataAvailability
validatorConfig.DataAvailability.RPCAggregator.Enable = false
AddDefaultValNode(t, ctx, validatorConfig, !arbitrator)
l2clientB, nodeB := Create2ndNodeWithConfig(t, ctx, nodeA, l1stack, l1info, &l2info.ArbInitData, validatorConfig, nil, nil)
defer nodeB.StopAndWait()
l2B, cleanup2nd := builder.Build2ndNode(t, &SecondNodeParams{nodeConfig: validatorConfig})
defer cleanup2nd()
l2clientB, nodeB := l2B.Client, l2B.ConsensusNode
l2info.GenerateAccount("User2")

perTransfer := big.NewInt(1e12)
Expand Down

0 comments on commit ba0de15

Please sign in to comment.