fix: SOL_RPC_URL use environ

This commit is contained in:
Eran Davidovich 2021-11-25 16:26:28 +02:00
parent 74072d0d2e
commit 64d107df49
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@ PYTH_PUBLISHER_INTERVAL = float(os.environ.get("PYTH_PUBLISHER_INTERVAL", "5"))
SOL_AIRDROP_AMT = os.environ.get("SOL_AIRDROP_AMT", 100)
SOL_RPC_HOST = os.environ.get("SOL_RPC_HOST", "solana-devnet")
SOL_RPC_PORT = os.environ.get("SOL_RPC_PORT", 8899)
SOL_RPC_URL = "http://{0}:{1}".format(SOL_RPC_HOST, SOL_RPC_PORT)
SOL_RPC_URL = "{0}:{1}".format(SOL_RPC_HOST, SOL_RPC_PORT)
SOL_RPC_URL = os.environ.get(
"SOL_RPC_URL", "{0}:{1}".format(SOL_RPC_HOST, SOL_RPC_PORT)
)
READINESS_PORT = int(os.environ.get("READINESS_PORT", "2000"))