Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cifko committed Oct 4, 2023
1 parent d63bb76 commit 84fa46c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def get_env_or_default(env_name: str, default: Any, validation: Any = None) -> A
# how many dan wallets should print to console
REDIRECT_DAN_WALLET_STDOUT = 0
# The register vn cli is redirected as VN, this is for the publish template etc.
REDIRECT_VN_CLI_STDOUT = True
REDIRECT_INDEXER_STDOUT = True
REDIRECT_INDEXER_STDOUT = 0
# This is for the cargo generate and compilation for the template
REDIRECT_CARGO_INSTALL_CARGO_GENERATE_STDOUT = True
REDIRECT_TEMPLATE_STDOUT = True
Expand Down
2 changes: 1 addition & 1 deletion Processes/common_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_port(self, interface: str) -> int:

def run(self, redirect: Union[bool, int], cwd: Optional[str] = None):
env: dict[str, str] = os.environ.copy()
if (self.id is not None and self.id >= redirect) or (not self.id and redirect):
if (self.id is not None and self.id >= redirect) or (self.id is None and redirect):
self.process = SubprocessWrapper.Popen(
self.exec,
stdin=subprocess.PIPE,
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def stress_test():

def send_tx(account0: int, account1: int):
global total_num_of_tx
res_addr = [1] * 32
res_addr = "resource_0101010101010101010101010101010101010101010101010101010101010101"
acc0, dan0 = accounts[account0]
acc1, dan1 = accounts[account1]
public_key0 = acc0["public_key"]
Expand Down

0 comments on commit 84fa46c

Please sign in to comment.