Skip to content

Commit

Permalink
Allow to connect to other nodes than toxiproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez committed Aug 26, 2024
1 parent d550cfc commit 1a049ab
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
25 changes: 25 additions & 0 deletions scripts/genesis-benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 6 additions & 1 deletion scripts/genesis-benchmarks/run-syncing-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:-}

Expand Down

0 comments on commit 1a049ab

Please sign in to comment.