Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Dec 8, 2024
1 parent 4097f1a commit b11a27c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions counterparty-core/counterpartycore/lib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ def extract_bitcoincore_config():
"rpcssl": "backend-ssl",
}

for bitcoind_key in config_keys:
for bitcoind_key, counterparty_key in config_keys.items():
if bitcoind_key in conf:
counterparty_key = config_keys[bitcoind_key]
bitcoincore_config[counterparty_key] = conf[bitcoind_key]

return bitcoincore_config
Expand Down Expand Up @@ -144,9 +143,8 @@ def server_to_client_config(server_config):
"rpc-password": "counterparty-rpc-password",
}

for server_key in config_keys:
for server_key, client_key in config_keys.items():
if server_key in server_config:
client_key = config_keys[server_key]
client_config[client_key] = server_config[server_key]

return client_config
Expand Down
4 changes: 2 additions & 2 deletions counterparty-core/counterpartycore/test/fixtures/scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,8 @@ def generate_standard_scenario(address1, address2, order_matches):
"parseblock_unittest_fixture": (PARSEBLOCKS_FIXTURE, "parseblock_unittest_fixture"),
}
# Generate special tests for simplesig, multisig2 and multisig3 using standard scenario.
for scenario_name in standard_scenarios_params:
for scenario_name, params in standard_scenarios_params.items():
INTEGRATION_SCENARIOS[scenario_name] = (
generate_standard_scenario(**standard_scenarios_params[scenario_name]),
generate_standard_scenario(**params),
scenario_name,
)

0 comments on commit b11a27c

Please sign in to comment.