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.3] New Transaction Composer #2272

Draft
wants to merge 9 commits into
base: develop
Choose a base branch
from
Draft

[v10.4.3] New Transaction Composer #2272

wants to merge 9 commits into from

Conversation

ouziel-slama
Copy link
Contributor

  • 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 marked this pull request as draft September 27, 2024 16:29
@adamkrellenstein adamkrellenstein changed the title New Transaction Composer [v10.4.3] New Transaction Composer Sep 28, 2024
raise exceptions.TransactionError(f"Not supported encoding: {encoding}")


def prepare_outputs(source, destinations, data, pubkeys, encoding, arc4_key=None):

Check warning

Code scanning / pylint

Too many positional arguments (6/5). Warning

Too many positional arguments (6/5).
return get_needed_fee(tx, satoshis_per_vbyte)


def compose_transaction(

Check warning

Code scanning / pylint

Too many positional arguments (8/5). Warning

Too many positional arguments (8/5).
source, destinations, data, pubkeys, encoding, arc4_key=inputs[0]["txid"]
)
tx = CTransaction(inputs, outputs + change_outputs)
btc_out = sum(output.nValue for output in outputs)

Check warning

Code scanning / pylint

Instance of 'TxOutput' has no 'nValue' member. Warning

Instance of 'TxOutput' has no 'nValue' member.

def get_minimum_change(source):
if script.is_multisig(source):
return config.MULTISIG_DUST_SIZE

Check warning

Code scanning / pylint

Module 'counterpartycore.lib.config' has no 'MULTISIG_DUST_SIZE' member. Warning

Module 'counterpartycore.lib.config' has no 'MULTISIG_DUST_SIZE' member.
def get_minimum_change(source):
if script.is_multisig(source):
return config.MULTISIG_DUST_SIZE
return config.REGULAR_DUST_SIZE

Check warning

Code scanning / pylint

Module 'counterpartycore.lib.config' has no 'REGULAR_DUST_SIZE' member. Warning

Module 'counterpartycore.lib.config' has no 'REGULAR_DUST_SIZE' member.
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.

2 participants