forked from ethereum/hive
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simulator (optimism/p2p): add new simulator to test p2p (#15)
* simulator (op): adds new simulator to test p2p * ci: update test cmd; rename test * op: rebase + refactor op-node * go: module cleanup; update ci workflow * op: go mod tidy * op: devnet - add method StartVerifier * op: devnet - pass required flags * op: devnet - use p2p static flag in entrypoint * op: devnet - update multiaddr * simulator (optimism/p2p): verifier - static p2p * ci: add parallel p2p / rpc workflows * ci: fix workflows * simulator (optimism/rpc): bump hive version * simulators (optimism/rpc): bump go.sum * op: devnet - pass dynamic p2p node key * simulators (optimism/p2p): bump hive * simulators (optimism/p2p): bump go.sum * simulators (optimism/p2p): use str p2p node key * simulators (optimism/p2p): bump hive
- Loading branch information
Showing
19 changed files
with
991 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This simulation runs JSON-RPC API tests. | ||
FROM golang:1.18-alpine3.15 as builder | ||
RUN apk add --update gcc musl-dev linux-headers | ||
|
||
# Build the simulator executable. | ||
ADD . /source | ||
WORKDIR /source | ||
RUN go build -v . | ||
|
||
# Build the simulator run container. | ||
FROM alpine:latest | ||
ADD . /source | ||
WORKDIR /source | ||
COPY --from=builder /source/p2p . | ||
ENTRYPOINT ["./p2p"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Optimism P2P test suite | ||
|
||
This test suite tests the P2P protocol between the sequencer and verifier on | ||
the optimism network. | ||
|
||
hive --sim optimism/p2p --client=op-l1,op-l2,op-proposer,op-batcher,op-sequencer,op-verifier --docker.output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module github.com/ethereum/hive/simulators/optimism/p2p | ||
|
||
go 1.18 | ||
|
||
replace github.com/ethereum/go-ethereum v1.10.17 => github.com/ethereum-optimism/reference-optimistic-geth v0.0.0-20220715235548-70b02481016d | ||
|
||
replace github.com/ethereum/hive v0.0.0-20220630112103-4b22dc796d94 => github.com/ethereum-optimism/hive v0.0.0-20220725184331-e0ca18567bc8 | ||
|
||
require ( | ||
github.com/ethereum/go-ethereum v1.10.17 | ||
github.com/ethereum/hive v0.0.0-20220630112103-4b22dc796d94 | ||
) | ||
|
||
require ( | ||
github.com/StackExchange/wmi v0.0.0-20210224194228-fe8f1750fd46 // indirect | ||
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect | ||
github.com/deckarep/golang-set v1.8.0 // indirect | ||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect | ||
github.com/go-ole/go-ole v1.2.5 // indirect | ||
github.com/go-stack/stack v1.8.0 // indirect | ||
github.com/golang-jwt/jwt/v4 v4.3.0 // indirect | ||
github.com/golang/snappy v0.0.4 // indirect | ||
github.com/gorilla/websocket v1.4.2 // indirect | ||
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect | ||
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect | ||
github.com/tklauser/go-sysconf v0.3.5 // indirect | ||
github.com/tklauser/numcpus v0.2.2 // indirect | ||
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e // indirect | ||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect | ||
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect | ||
) |
Oops, something went wrong.