You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Set genesis config to enable desired hardforks in [`proposer-tool-genesis.json`](./proposer-tool-genesis.json).
52
+
2. Set proposer config in [`proposer-tool-config.json`](./proposer-tool-config.json) for data analysis.
53
+
3. Set `start-l2-block` in the launch command of proposer-tool in [`docker-compose-proposer-tool.yml`](./docker-compose-proposer-tool.yml) to the block number you want to start from. The default is `0`, which means starting from the genesis block.
54
+
55
+
### Start the proposer tool using docker-compose
56
+
57
+
Prerequisite: an RPC URL to an archive L2 node. The default url in [`proposer-tool-config.json`](./proposer-tool-config.json) is `https://rpc.scroll.io`.
58
+
59
+
```
60
+
cd rollup
61
+
DOCKER_BUILDKIT=1 docker-compose -f docker-compose-proposer-tool.yml up -d
62
+
```
63
+
64
+
> Note: The port 5432 of database is mapped to the host machine. You can use `psql` or any db clients to connect to the database.
65
+
66
+
> The DSN for the database is `postgres://postgres:postgres@db:5432/scroll?sslmode=disable`.
67
+
68
+
69
+
### Reset env
70
+
```
71
+
docker-compose -f docker-compose-proposer-tool.yml down -v
72
+
```
73
+
74
+
If you need to rebuild the images, removing the old images is necessary. You can do this by running the following command:
0 commit comments