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.4.0 #2242

Merged
merged 228 commits into from
Sep 18, 2024
Merged

v10.4.0 #2242

merged 228 commits into from
Sep 18, 2024

Conversation

ouziel-slama
Copy link
Contributor

@ouziel-slama ouziel-slama commented Sep 18, 2024

https://github.com/CounterpartyXCP/counterparty-core/releases/tag/v10.4.0

  • 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

@ouziel-slama ouziel-slama changed the title v10.4.1 v10.4.0 Sep 18, 2024
@@ -910,7 +973,9 @@
else:
assert block_index == util.CURRENT_BLOCK_INDEX

if source and (data or destination == config.UNSPENDABLE or dispensers_outs):
if (source and (data or destination == config.UNSPENDABLE or dispensers_outs)) or len(

Check warning

Code scanning / pylint

Unnecessary "else" after "return", remove the "else" and de-indent the code inside it. Warning

Unnecessary "else" after "return", remove the "else" and de-indent the code inside it.
def sigmoid(t):
return 1 / (1 + math.exp(-k * (t - 0.5)))

if x <= a:

Check warning

Code scanning / pylint

Unnecessary "elif" after "return", remove the leading "el" from "elif". Warning

Unnecessary "elif" after "return", remove the leading "el" from "elif".
return message


def parse(db, tx):

Check warning

Code scanning / pylint

Too many branches (13/12). Warning

Too many branches (13/12).

dispense_index = 0

for next_out in outs:

Check warning

Code scanning / pylint

Too many nested blocks (6/5). Warning

Too many nested blocks (6/5).
)


def validate(

Check warning

Code scanning / pylint

Too many branches (36/12). Warning

Too many branches (36/12).
@@ -30,6 +30,7 @@
util,
)
from counterpartycore.lib.backend import addrindexrs
from counterpartycore.lib.messages import dispense # noqa: F401

Check warning

Code scanning / pylint

Unused dispense imported from counterpartycore.lib.messages. Warning

Unused dispense imported from counterpartycore.lib.messages.
)


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

Check warning

Code scanning / pylint

Unused argument 'db'. Warning

Unused argument 'db'.
os.path.dirname(config.DATABASE), "regtest_disabled_changes.json"
)
if os.path.exists(regtest_protocole_file):
with open(regtest_protocole_file) as f:

Check warning

Code scanning / pylint

Using open without explicitly specifying an encoding. Warning

Using open without explicitly specifying an encoding.
os.path.dirname(config.DATABASE), "regtest_disabled_changes.json"
)
if os.path.exists(regtest_protocole_file):
with open(regtest_protocole_file) as f:

Check warning

Code scanning / pylint

Redefining name 'f' from outer scope (line 546). Warning

Redefining name 'f' from outer scope (line 546).
@@ -584,3 +633,22 @@

def ib2h(b):
return inverse_hash(b2h(b))


def is_utxo_format(value):

Check warning

Code scanning / pylint

Too many return statements (7/6). Warning

Too many return statements (7/6).
@ouziel-slama ouziel-slama merged commit 827ae09 into master Sep 18, 2024
19 checks passed
ouziel-slama added a commit that referenced this pull request Sep 24, 2024
Merge pull request #2242 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.

4 participants