Skip to content

Commit

Permalink
Merge branch 'optimal-commits' into replace-history-commits
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan authored Sep 18, 2024
2 parents 5915a85 + 305d4f0 commit dbbf382
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assertions/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ func TestFastConfirmationWithSafe(t *testing.T) {
assertionManagerBob.Start(ctx)

// Only after both Alice and Bob confirm the assertion, it should be confirmed.
ctx, cancel := context.WithTimeout(ctx, time.Second)
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()
expectAssertionConfirmed(t, ctx, setup.Backend, aliceChain.RollupAddress())
}
Expand Down
6 changes: 4 additions & 2 deletions state-commitments/optimized/history_commitment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ func FuzzHistoryCommitter(f *testing.F) {
hashedLeaves[i] = crypto.Keccak256Hash(simpleHash[:])
}
committer := NewCommitter()
committer.ComputeRoot(hashedLeaves, virtual)
_, err := committer.ComputeRoot(hashedLeaves, virtual)
_ = err
})
}

Expand Down Expand Up @@ -444,7 +445,8 @@ func BenchmarkMaximumDepthHistoryCommitment(b *testing.B) {
committer := NewCommitter()
b.StartTimer()
for i := 0; i < b.N; i++ {
committer.ComputeRoot(hashedLeaves, 1<<26)
_, err := committer.ComputeRoot(hashedLeaves, 1<<26)
_ = err
}
}

Expand Down

0 comments on commit dbbf382

Please sign in to comment.