Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v10.6.0 #2590

Merged
merged 88 commits into from
Oct 25, 2024
Merged

v10.6.0 #2590

merged 88 commits into from
Oct 25, 2024

Conversation

ouziel-slama
Copy link
Contributor

@ouziel-slama ouziel-slama commented Oct 25, 2024

  • Double-check the spelling and grammar of all strings, code comments, etc.
  • Double-check that all code is deterministic that needs to be
  • Add tests to cover any new or revised logic
  • Ensure that the test suite passes
  • Update the project release notes
  • Update the project documentation, as appropriate, with a corresponding Pull Request in the Documentation repository

logger.debug("No block fetched. Waiting before next fetch.")
time.sleep(random.uniform(0.2, 0.7)) # noqa: S311
# Use Event's wait method instead of time.sleep for better responsiveness
self.stopped_event.wait(timeout=random.uniform(0.2, 0.7)) # noqa: S311

Check notice

Code scanning / Bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
@@ -392,74 +392,94 @@
return app


def run_api_server(args, interrupted_value, server_ready_value):
def run_api_server(args, server_ready_value, stop_event):

Check warning

Code scanning / pylint

Unused argument 'stop_event'. Warning

Unused argument 'stop_event'.
jsonrpc_response = jsonrpc.exceptions.JSONRPCServerError(
message=exception_name, data=exception_text
)
CURRENT_API_STATUS_CODE = code

Check warning

Code scanning / pylint

Using variable 'code' before assignment. Warning

Using variable 'code' before assignment.
@@ -652,7 +652,7 @@
cursor.execute(sql, event_bindings)


def parse_event(api_db, event, catching_up=False):
def parse_event(api_db, event, watcher, catching_up=False):

Check warning

Code scanning / pylint

Unused argument 'catching_up'. Warning

Unused argument 'catching_up'.
@@ -803,8 +803,8 @@
return event


def synchronize_mempool(api_db, ledger_db):
if config.NO_MEMPOOL:
def synchronize_mempool(api_db, ledger_db, stop_event):

Check warning

Code scanning / pylint

Too many branches (16/12). Warning

Too many branches (16/12).
@@ -666,7 +675,14 @@
)


def compose_movetoutxo(db, utxo: str, destination: str, more_utxos: str = ""):
def compose_movetoutxo(

Check warning

Code scanning / pylint

Too many positional arguments (6/5). Warning

Too many positional arguments (6/5).
try:
check.asset_conservation(self.db, self.stop_event)
except check.SanityError as e:
logger.error("Asset conservation check failed: %s" % e)

Check warning

Code scanning / pylint

Formatting a regular string which could be an f-string. Warning

Formatting a regular string which could be an f-string.
@@ -733,8 +723,21 @@
asset_conservation_checker = None
db = None

# Log all config parameters, sorted by key
# Filter out default values #TODO: these should be set in a different way

Check warning

Code scanning / pylint

Filter out default values #TODO: these should be set in a different way. Warning

Filter out default values #TODO: these should be set in a different way.
}
logger.debug(f"Config: {custom_config}")

def handle_interrupt_signal(signum, frame):

Check warning

Code scanning / pylint

Redefining name 'handle_interrupt_signal' from outer scope (line 49). Warning

Redefining name 'handle_interrupt_signal' from outer scope (line 49).
}
logger.debug(f"Config: {custom_config}")

def handle_interrupt_signal(signum, frame):

Check warning

Code scanning / pylint

Unused argument 'signum'. Warning

Unused argument 'signum'.
}
logger.debug(f"Config: {custom_config}")

def handle_interrupt_signal(signum, frame):

Check warning

Code scanning / pylint

Unused argument 'frame'. Warning

Unused argument 'frame'.


def get_orders(
db,
status: OrderStatus = "all",
get_asset: str = None,

Check warning

Code scanning / pylint

Redefining name 'get_asset' from outer scope (line 2472). Warning

Redefining name 'get_asset' from outer scope (line 2472).
Fix `--bootstrap-url` flag with `start` command
Merge pull request #2531 from CounterpartyXCP/develop
@ouziel-slama ouziel-slama merged commit 2521b0b into master Oct 25, 2024
19 checks passed
ouziel-slama added a commit that referenced this pull request Oct 28, 2024
Merge pull request #2590 from CounterpartyXCP/develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants