Skip to content

Commit

Permalink
respond to RFCs in PR #297
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch authored and derekpierre committed Aug 9, 2024
1 parent 4ea9027 commit 05b960e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deployment/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# Sampling
#

PORTER_ENDPOINTS = {
PORTER_SAMPLING_ENDPOINTS = {
MAINNET: "https://porter.nucypher.io/bucket_sampling",
LYNX: "https://porter-lynx.nucypher.io/get_ursulas",
TAPIR: "https://porter-tapir.nucypher.io/get_ursulas",
Expand Down
4 changes: 2 additions & 2 deletions deployment/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ape.contracts import ContractContainer, ContractInstance
from ape_etherscan.utils import API_KEY_ENV_KEY_MAP

from deployment.constants import ARTIFACTS_DIR, LYNX, MAINNET, PORTER_ENDPOINTS, TAPIR
from deployment.constants import ARTIFACTS_DIR, LYNX, MAINNET, PORTER_SAMPLING_ENDPOINTS, TAPIR
from deployment.networks import is_local_network


Expand Down Expand Up @@ -171,7 +171,7 @@ def get_chain_name(chain_id: int) -> str:
def sample_nodes(
domain: str, num_nodes: int, random_seed: Optional[int] = None, duration: Optional[int] = None
):
porter_endpoint = PORTER_ENDPOINTS.get(domain)
porter_endpoint = PORTER_SAMPLING_ENDPOINTS.get(domain)
if not porter_endpoint:
raise ValueError(f"Porter endpoint not found for domain '{domain}'")

Expand Down
2 changes: 1 addition & 1 deletion scripts/initiate_ritual.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def cli(
if not (bool(handpicked) ^ (num_nodes is not None)):
raise click.BadOptionUsage(
option_name="--num-nodes",
message=f"Specify either --num-nodes or --handpicked; got {num_nodes} {handpicked}",
message=f"Specify either --num-nodes or --handpicked; got {num_nodes}, {handpicked}.",
)
if handpicked and random_seed:
raise click.BadOptionUsage(
Expand Down

0 comments on commit 05b960e

Please sign in to comment.