Rewrite multinode-demo/replicator.sh to avoid fullnode.sh (#5299)

This commit is contained in:
Michael Vines
2019-07-26 19:00:34 -07:00
committed by GitHub
parent e2c9d87d91
commit 252257fe66
4 changed files with 163 additions and 158 deletions

14
multinode-demo/rpc-url.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# Given a gossip entrypoint derive the entrypoint's RPC address
#
entrypoint_address=$1
if [[ -z $entrypoint_address ]]; then
echo "Error: entrypoint address not specified" >&2
exit 1
fi
# TODO: Rather than hard coding, add a `solana-gossip rpc-address` command that
# actually asks the entrypoint itself for its RPC address
echo "http://${entrypoint_address%:*}:8899"