Skip to content

Commit

Permalink
feat: the mock prover network can be started(l1 is b2node) , l2 can t…
Browse files Browse the repository at this point in the history
…ransfer ether b2network/b2-node#20
  • Loading branch information
tony-armstrong committed Nov 8, 2023
1 parent 43f84ae commit 413547f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 34 deletions.
3 changes: 2 additions & 1 deletion test/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# B2_ZKEVM_PROVER_IMAGE=ghcr.io/b2network/b2-zkevm-prover:20231107-163409-c78044e
# B2_ZKEVM_PROVER_IMAGE=ghcr.io/b2network/b2-zkevm-prover:20231107-205241-c78044e
B2_ZKEVM_PROVER_IMAGE=ghcr.io/b2network/b2-zkevm-prover:20231107-210123-c78044e
B2_ZKEVM_NODE_IMAGE=ghcr.io/b2network/b2-zkevm-node:develop-v0.2.0-RC1-20231027-120130-f3ea9bee
# B2_ZKEVM_NODE_IMAGE=ghcr.io/b2network/b2-zkevm-node:develop-v0.2.0-RC1-20231027-120130-f3ea9bee
B2_ZKEVM_NODE_IMAGE=ghcr.io/b2network/b2-zkevm-node:develop-list-20231107-220652-ef1b3337
B2_NODE_IMAGE=ghcr.io/b2network/b2-node:20231031-175311-eb3cc87
GRAFANA_IMAGE=grafana/grafana
TELEGRAF_IMAGE=telegraf
Expand Down
19 changes: 9 additions & 10 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -473,17 +473,16 @@ run: ## Runs a full node
$(RUNL1NETWORK)
sleep 5
$(RUNZKPROVER)
sleep 15
$(RUNAPPROVE)
# sleep 5
# $(RUNSYNC)
# sleep 10
# $(RUNETHTXMANAGER)
# $(RUNSEQUENCER)
# $(RUNSEQUENCESENDER)
# $(RUNL2GASPRICER)
# $(RUNAGGREGATOR)
# $(RUNJSONRPC)
sleep 5
$(RUNSYNC)
sleep 10
$(RUNETHTXMANAGER)
$(RUNSEQUENCER)
$(RUNSEQUENCESENDER)
$(RUNL2GASPRICER)
$(RUNAGGREGATOR)
$(RUNJSONRPC)

.PHONY: stop
stop: ## Stops all services
Expand Down
51 changes: 28 additions & 23 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ services:
- ./config/test.genesis.config.json:/app/genesis.json
- ./:/datastreamer
# - ./strace-out:/strace-out
entrypoint:
- /bin/sh
command:
- "/bin/sh"
- "-c"
- "/app/zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components sequencer"
- -c
- /app/b2-zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components sequencer

zkevm-sequence-sender:
container_name: zkevm-sequence-sender
Expand All @@ -82,10 +83,11 @@ services:
- ./config/test.node.config.toml:/app/config.toml
- ./config/test.genesis.config.json:/app/genesis.json
# - ./strace-out:/strace-out
entrypoint:
- /bin/sh
command:
- "/bin/sh"
- "-c"
- "/app/zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components sequence-sender"
- -c
- /app/b2-zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components sequence-sender

zkevm-json-rpc:
container_name: zkevm-json-rpc
Expand All @@ -102,11 +104,11 @@ services:
volumes:
- ./config/test.node.config.toml:/app/config.toml
- ./config/test.genesis.config.json:/app/genesis.json
- ./strace-out:/strace-out
entrypoint:
- /bin/sh
command:
- "/bin/sh"
- "-c"
- "/app/zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components rpc"
- -c
- /app/b2-zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components rpc

zkevm-aggregator:
container_name: zkevm-aggregator
Expand All @@ -121,10 +123,11 @@ services:
- ./config/test.node.config.toml:/app/config.toml
- ./config/test.genesis.config.json:/app/genesis.json
# - ./strace-out:/strace-out
entrypoint:
- /bin/sh
command:
- "/bin/sh"
- "-c"
- "/app/zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components aggregator"
- -c
- /app/b2-zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components aggregator

zkevm-sync:
container_name: zkevm-sync
Expand All @@ -138,11 +141,11 @@ services:
volumes:
- ./config/test.node.config.toml:/app/config.toml
- ./config/test.genesis.config.json:/app/genesis.json
# - ./strace-out:/strace-out
entrypoint:
- /bin/sh
command:
- "/bin/sh"
- "-c"
- "/app/zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components synchronizer"
- -c
- /app/b2-zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components synchronizer

zkevm-eth-tx-manager:
container_name: zkevm-eth-tx-manager
Expand All @@ -157,10 +160,11 @@ services:
- ./config/test.node.config.toml:/app/config.toml
- ./config/test.genesis.config.json:/app/genesis.json
# - ./strace-out:/strace-out
entrypoint:
- /bin/sh
command:
- "/bin/sh"
- "-c"
- "/app/zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components eth-tx-manager"
- -c
- /app/b2-zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components eth-tx-manager

zkevm-l2gaspricer:
container_name: zkevm-l2gaspricer
Expand All @@ -172,10 +176,11 @@ services:
- ./config/test.node.config.toml:/app/config.toml
- ./config/test.genesis.config.json:/app/genesis.json
# - ./strace-out:/strace-out
entrypoint:
- /bin/sh
command:
- "/bin/sh"
- "-c"
- "/app/zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components l2gaspricer"
- -c
- /app/b2-zkevm-node run --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components l2gaspricer

zkevm-state-db:
container_name: zkevm-state-db
Expand Down

0 comments on commit 413547f

Please sign in to comment.