Skip to content

Commit

Permalink
fix: running against a network
Browse files Browse the repository at this point in the history
  • Loading branch information
cdummett committed Jul 20, 2023
1 parent 6c64909 commit 10cc3dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vega_sim/devops/run_scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def main():
seconds_per_block=1,
transactions_per_block=1000,
retain_log_files=True,
use_full_vega_wallet=False,
use_full_vega_wallet=True,
warn_on_raw_data_access=False,
run_with_console=args.console,
) as vega:
Expand Down
4 changes: 3 additions & 1 deletion vega_sim/devops/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ def configure_agents(
market_maker = ExponentialShapedMarketMaker(
wallet_name=MARKET_MAKER_AGENT.wallet_name,
key_name=MARKET_MAKER_AGENT.key_name,
market_name=self.market_manager_args.market_name,
market_name=self.market_name
if self.market_name is not None
else self.market_manager_args.market_name,
asset_name=self.market_manager_args.asset_name,
initial_asset_mint=self.market_maker_args.initial_mint,
commitment_amount=self.market_maker_args.commitment_amount,
Expand Down
9 changes: 7 additions & 2 deletions vega_sim/network_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def __init__(
wallet_url: Optional[bool] = None,
faucet_url: Optional[bool] = None,
vega_node_grpc_url: Optional[str] = None,
load_existing_keys: Optional[bool] = None,
load_existing_keys: bool = True,
governance_symbol: Optional[str] = "VEGA",
vegacapsule_bin_path: Optional[str] = "./vega_sim/bin/vegacapsule",
network_on_host: Optional[bool] = False,
Expand Down Expand Up @@ -303,7 +303,12 @@ def __init__(
if wallet_home_path is not None
else environ.get("WALLET_HOME")
)
self._passphrase_file_path = wallet_passphrase_path

self._passphrase_file_path = (
wallet_passphrase_path
if wallet_passphrase_path is not None
else environ.get("VEGA_WALLET_TOKENS_PASSPHRASE_FILE")
)

self._token_path = (
wallet_token_path
Expand Down

0 comments on commit 10cc3dd

Please sign in to comment.