Files
scroll/bridge
Nazarii Denha 479a061ee6 perf: optimize block trace db usage (#162)
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: maskpp <maskpp266@gmail.com>
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
2022-12-14 21:43:33 +08:00
..
2022-12-08 20:52:25 +08:00
2022-10-19 21:01:35 +08:00
2022-10-19 21:01:35 +08:00
2022-10-19 21:01:35 +08:00
2022-10-19 21:01:35 +08:00

Bridge

This repo contains the Scroll bridge.

In addition, launching the bridge will launch a separate instance of l2geth, and sets up a communication channel between the two, over JSON-RPC sockets.

Something we should pay attention is that all private keys inside sender instance cannot be duplicated.

Dependency

  • install abigen
go install -v github.com/scroll-tech/go-ethereum/cmd/abigen

Build

make clean
make bridge

DB config

  • db settings in config
# DB_DSN: db data source name
export DB_DSN="postgres://admin:123456@localhost/test_db?sslmode=disable"
# DB_DRIVER: db driver name
export DB_DRIVER="postgres"

Start

  • use default ports and config.json
./build/bin/bridge --http
  • use specified ports and config.json
./build/bin/bridge --config ./config.json --http --http.addr localhost --http.port 8290