Skip to content

Commit

Permalink
pass state provider tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed May 14, 2024
1 parent 296c0fc commit 4746270
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions staker/state_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,10 @@ func (s *StateManager) StatesInBatchRange(
Batch: uint64(fromBatch),
PosInBatch: 0,
}
machineHashes := []common.Hash{machineHash(startState)}
states := []validator.GoGlobalState{startState}
machineHashes := make([]common.Hash, 0, totalDesiredHashes)
states := make([]validator.GoGlobalState, 0, totalDesiredHashes)
machineHashes = append(machineHashes, machineHash(startState))
states = append(states, startState)

for batch := fromBatch; batch < toBatch; batch++ {
batchMessageCount, err := s.validator.inboxTracker.GetBatchMessageCount(uint64(batch))
Expand Down
2 changes: 1 addition & 1 deletion system_tests/bold_challenge_protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ func deployContractsOnly(
Require(t, err)
wasmModuleRoot := locator.LatestWasmModuleRoot()

loserStakeEscrow := common.Address{}
loserStakeEscrow := l1TransactionOpts.From
genesisExecutionState := rollupgen.AssertionState{
GlobalState: rollupgen.GlobalState{},
MachineStatus: 1,
Expand Down
2 changes: 1 addition & 1 deletion system_tests/state_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func TestChallengeProtocolBOLD_StateProvider(t *testing.T) {
}
}

maxBlocks := uint64(1 << 26)
maxBlocks := uint64(1 << 14)

t.Run("StatesInBatchRange", func(t *testing.T) {
fromBatch := l2stateprovider.Batch(1)
Expand Down

0 comments on commit 4746270

Please sign in to comment.