debash: Add solana-gossip get-rpc-url command to avoid hard coding (#5513)

This commit is contained in:
Michael Vines
2019-08-13 10:49:48 -07:00
committed by GitHub
parent 97d57d168b
commit 08f6a2ea3e
5 changed files with 67 additions and 36 deletions

View File

@@ -56,7 +56,7 @@ done
: "${storage_keypair:="$SOLANA_ROOT"/farf/replicator-storage-keypair"$label".json}"
ledger="$SOLANA_ROOT"/farf/replicator-ledger"$label"
rpc_url=$("$here"/rpc-url.sh "$entrypoint")
rpc_url=$($solana_gossip get-rpc-url --entrypoint "$entrypoint")
if [[ ! -r $identity_keypair ]]; then
$solana_keygen new -o "$identity_keypair"