Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/cargo/arbitrator/prover/fuzz/ev…
Browse files Browse the repository at this point in the history
…m-0.41.1
  • Loading branch information
PlasmaPower committed Jul 30, 2024
2 parents 642951c + 0a167b2 commit af8575c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions arbnode/dataposter/dbstorage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ import (
"bytes"
"context"
"encoding/hex"
"errors"
"fmt"
"strconv"

"github.com/ethereum/go-ethereum/ethdb"
"github.com/offchainlabs/nitro/arbnode/dataposter/storage"
"github.com/offchainlabs/nitro/util/dbutil"
"github.com/syndtr/goleveldb/leveldb"
)

// Storage implements db based storage for batch poster.
Expand Down Expand Up @@ -61,7 +59,7 @@ func (s *Storage) Get(_ context.Context, index uint64) (*storage.QueuedTransacti
key := idxToKey(index)
value, err := s.db.Get(key)
if err != nil {
if errors.Is(err, leveldb.ErrNotFound) {
if dbutil.IsErrNotFound(err) {
return nil, nil
}
return nil, err
Expand Down
2 changes: 0 additions & 2 deletions system_tests/full_challenge_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ package arbtest
import "testing"

func TestMockChallengeManagerAsserterIncorrect(t *testing.T) {
t.Parallel()
defaultWasmRootDir := ""
for i := int64(1); i <= makeBatch_MsgsPerBatch*3; i++ {
RunChallengeTest(t, false, true, i, defaultWasmRootDir)
}
}

func TestMockChallengeManagerAsserterCorrect(t *testing.T) {
t.Parallel()
defaultWasmRootDir := ""
for i := int64(1); i <= makeBatch_MsgsPerBatch*3; i++ {
RunChallengeTest(t, true, true, i, defaultWasmRootDir)
Expand Down
1 change: 0 additions & 1 deletion system_tests/program_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ func storageTest(t *testing.T, jit bool) {
}

func TestProgramTransientStorage(t *testing.T) {
t.Parallel()
transientStorageTest(t, true)
}

Expand Down

0 comments on commit af8575c

Please sign in to comment.