Skip to content

Commit 44e6c56

Browse files
authored
Merge pull request #2083 from OffchainLabs/geth-1.13
Geth 1.13
2 parents aa45e17 + 18a47f7 commit 44e6c56

File tree

9 files changed

+60
-79
lines changed

9 files changed

+60
-79
lines changed

arbnode/dataposter/storage_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func newLevelDBStorage(t *testing.T, encF storage.EncoderDecoderF) *dbstorage.St
4444

4545
func newPebbleDBStorage(t *testing.T, encF storage.EncoderDecoderF) *dbstorage.Storage {
4646
t.Helper()
47-
db, err := rawdb.NewPebbleDBDatabase(path.Join(t.TempDir(), "pebble.db"), 0, 0, "default", false)
47+
db, err := rawdb.NewPebbleDBDatabase(path.Join(t.TempDir(), "pebble.db"), 0, 0, "default", false, true)
4848
if err != nil {
4949
t.Fatalf("NewPebbleDBDatabase() unexpected error: %v", err)
5050
}

arbos/arbosState/initialization_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func checkAccounts(db *state.StateDB, arbState *ArbosState, accts []statetransfe
158158
if !bytes.Equal(acct.ContractInfo.Code, db.GetCode(addr)) {
159159
t.Fatal()
160160
}
161-
err := db.ForEachStorage(addr, func(key common.Hash, value common.Hash) bool {
161+
err := state.ForEachStorage(db, addr, func(key common.Hash, value common.Hash) bool {
162162
if key == (common.Hash{}) {
163163
// Unfortunately, geth doesn't seem capable of giving us storage keys any more.
164164
// Even with the triedb Preimages set to true, it doesn't record the necessary

broadcastclient/broadcastclient_test.go

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,21 @@ func startMakeBroadcastClient(ctx context.Context, t *testing.T, clientConfig Co
232232

233233
go func() {
234234
defer wg.Done()
235-
defer broadcastClient.StopAndWait()
235+
// drain messages so messages could be sent on ts.messageReceiver
236+
defer func() {
237+
clientDone := make(chan struct{})
238+
go func() {
239+
for {
240+
select {
241+
case <-ts.messageReceiver:
242+
case <-clientDone:
243+
return
244+
}
245+
}
246+
}()
247+
broadcastClient.StopAndWait()
248+
close(clientDone)
249+
}()
236250
var timeout time.Duration
237251
if expectedCount == 0 {
238252
timeout = 1 * time.Second

go-ethereum

Submodule go-ethereum updated 323 files

go.mod

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.10
1919
github.com/aws/aws-sdk-go-v2/service/s3 v1.26.9
2020
github.com/cavaliergopher/grab/v3 v3.0.1
21-
github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811
21+
github.com/cockroachdb/pebble v0.0.0-20230906160148-46873a6a7a06
2222
github.com/codeclysm/extract/v3 v3.0.2
2323
github.com/dgraph-io/badger/v3 v3.2103.2
2424
github.com/enescakir/emoji v1.0.0
@@ -53,6 +53,7 @@ require (
5353
bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc // indirect
5454
github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 // indirect
5555
github.com/DataDog/zstd v1.5.2 // indirect
56+
github.com/Microsoft/go-winio v0.6.1 // indirect
5657
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
5758
github.com/alexbrainman/goissue34681 v0.0.0-20191006012335-3fc7a47baff5 // indirect
5859
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
@@ -97,7 +98,7 @@ require (
9798
github.com/dgraph-io/ristretto v0.1.0 // indirect
9899
github.com/dlclark/regexp2 v1.7.0 // indirect
99100
github.com/docker/go-units v0.5.0 // indirect
100-
github.com/dop251/goja v0.0.0-20230605162241-28ee0ee714f3 // indirect
101+
github.com/dop251/goja v0.0.0-20230806174421-c933cf95e127 // indirect
101102
github.com/dustin/go-humanize v1.0.0 // indirect
102103
github.com/elastic/gosigar v0.14.2 // indirect
103104
github.com/emirpasic/gods v1.18.1 // indirect
@@ -131,7 +132,7 @@ require (
131132
github.com/hashicorp/errwrap v1.1.0 // indirect
132133
github.com/hashicorp/go-multierror v1.1.1 // indirect
133134
github.com/holiman/billy v0.0.0-20230718173358-1c7e68d277a7 // indirect
134-
github.com/huin/goupnp v1.1.0 // indirect
135+
github.com/huin/goupnp v1.3.0 // indirect
135136
github.com/ipfs/bbloom v0.0.4 // indirect
136137
github.com/ipfs/go-bitfield v1.1.0 // indirect
137138
github.com/ipfs/go-block-format v0.1.1 // indirect
@@ -307,13 +308,13 @@ require (
307308
)
308309

309310
require (
310-
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 // indirect
311+
github.com/StackExchange/wmi v1.2.1 // indirect
311312
github.com/VictoriaMetrics/fastcache v1.6.0 // indirect
312313
github.com/cespare/xxhash/v2 v2.2.0 // indirect
313314
github.com/davecgh/go-spew v1.1.1 // indirect
314315
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 // indirect
315316
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
316-
github.com/go-ole/go-ole v1.2.1 // indirect
317+
github.com/go-ole/go-ole v1.2.5 // indirect
317318
github.com/go-redis/redis/v8 v8.11.4
318319
github.com/go-stack/stack v1.8.1 // indirect
319320
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
@@ -333,8 +334,7 @@ require (
333334
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
334335
github.com/status-im/keycard-go v0.2.0 // indirect
335336
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
336-
github.com/tklauser/go-sysconf v0.3.5 // indirect
337-
github.com/tklauser/numcpus v0.2.2 // indirect
337+
github.com/tklauser/go-sysconf v0.3.12 // indirect
338+
github.com/tklauser/numcpus v0.6.1 // indirect
338339
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
339-
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
340340
)

0 commit comments

Comments
 (0)