Skip to content

Commit 1a049ab

Browse files
Allow to connect to other nodes than toxiproxy
1 parent d550cfc commit 1a049ab

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

scripts/genesis-benchmarks/README.md

+25
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,31 @@ from slot 0 with,
8787
$ SYNC_FROM_0=1 NUM_SLOTS=155000 ./run-syncing-node.sh 1
8888
```
8989

90+
### How to connect to other nodes than toxiproxy
91+
92+
The following uses a custom topology file, instead of generating one that
93+
connects to toxiproxy.
94+
95+
```
96+
$ TOPOLOGY=toplogy.json ./run-syncing-node.sh 1
97+
```
98+
99+
For instance,
100+
```
101+
$ cat topology.json
102+
{"publicRoots": []
103+
, "localRoots":
104+
[{ "accessPoints":
105+
[ {"address": "34.216.201.242", "port": 3001}
106+
, {"address": "3.77.115.8", "port": 3001}
107+
]
108+
, "advertise": false
109+
, "hotValency": 2
110+
, "trustable": true
111+
}]
112+
}
113+
```
114+
90115
### How to collect the eventlog of the syncing node
91116

92117
The following command collects the eventlog.

scripts/genesis-benchmarks/run-syncing-node.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ then
8888
else
8989
truncate_chaindb
9090
fi
91-
generate_topology_json_p2p $TOPOLOGY_JSON
91+
if [ -v TOPOLOGY ]
92+
then
93+
cp $TOPOLOGY $TOPOLOGY_JSON
94+
else
95+
generate_topology_json_p2p $TOPOLOGY_JSON
96+
fi
9297

9398
CABAL_FLAGS=${CABAL_FLAGS:-}
9499

0 commit comments

Comments
 (0)