From 1a049ab30fdca62e71a3fbf1ea37298945a8e6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Facundo=20Dom=C3=ADnguez?= Date: Mon, 26 Aug 2024 18:35:22 -0300 Subject: [PATCH] Allow to connect to other nodes than toxiproxy --- scripts/genesis-benchmarks/README.md | 25 +++++++++++++++++++ .../genesis-benchmarks/run-syncing-node.sh | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/scripts/genesis-benchmarks/README.md b/scripts/genesis-benchmarks/README.md index a280ad774f..93903b6bc7 100644 --- a/scripts/genesis-benchmarks/README.md +++ b/scripts/genesis-benchmarks/README.md @@ -87,6 +87,31 @@ from slot 0 with, $ SYNC_FROM_0=1 NUM_SLOTS=155000 ./run-syncing-node.sh 1 ``` +### How to connect to other nodes than toxiproxy + +The following uses a custom topology file, instead of generating one that +connects to toxiproxy. + +``` +$ TOPOLOGY=toplogy.json ./run-syncing-node.sh 1 +``` + +For instance, +``` +$ cat topology.json +{"publicRoots": [] +, "localRoots": + [{ "accessPoints": + [ {"address": "34.216.201.242", "port": 3001} + , {"address": "3.77.115.8", "port": 3001} + ] + , "advertise": false + , "hotValency": 2 + , "trustable": true + }] +} +``` + ### How to collect the eventlog of the syncing node The following command collects the eventlog. diff --git a/scripts/genesis-benchmarks/run-syncing-node.sh b/scripts/genesis-benchmarks/run-syncing-node.sh index 2fc45555b9..426299c085 100644 --- a/scripts/genesis-benchmarks/run-syncing-node.sh +++ b/scripts/genesis-benchmarks/run-syncing-node.sh @@ -88,7 +88,12 @@ then else truncate_chaindb fi -generate_topology_json_p2p $TOPOLOGY_JSON +if [ -v TOPOLOGY ] +then + cp $TOPOLOGY $TOPOLOGY_JSON +else + generate_topology_json_p2p $TOPOLOGY_JSON +fi CABAL_FLAGS=${CABAL_FLAGS:-}