fix: P2W_ADDRESS set environ

This commit is contained in:
Eran Davidovich 2021-11-25 19:06:31 +02:00
parent 9ac2a3a6bf
commit b0951bddb9
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ from http.server import BaseHTTPRequestHandler, HTTPServer
from pyth_utils import *
P2W_ADDRESS = "P2WH424242424242424242424242424242424242424"
P2W_ADDRESS = os.environ.get(
"P2W_ADDRESS", "P2WH424242424242424242424242424242424242424"
)
P2W_ATTEST_INTERVAL = float(os.environ.get("P2W_ATTEST_INTERVAL", 5))
P2W_OWNER_KEYPAIR = os.environ.get(
"P2W_OWNER_KEYPAIR", f'{"/usr/src/solana/keys/p2w_owner.json"}'