Skip to content

Support message-only compose alias#3416

Open
caydyan wants to merge 1 commit into
CounterpartyXCP:developfrom
caydyan:add-message-only-compose-alias-2185
Open

Support message-only compose alias#3416
caydyan wants to merge 1 commit into
CounterpartyXCP:developfrom
caydyan:add-message-only-compose-alias-2185

Conversation

@caydyan

@caydyan caydyan commented Jun 10, 2026

Copy link
Copy Markdown

Supersedes #3370 with the same fix rebased onto the current develop branch.

Fixes #2185.

This adds message_only as a public compose option alias for return_only_data, matching the issue discussion's request for a compose call that returns just the packed Counterparty message hex.

Details:

  • Adds message_only to CONSTRUCT_PARAMS.
  • Normalizes message_only=True to return_only_data=True during construct parameter preparation.
  • Keeps an explicit return_only_data=True intact even when message_only=False.
  • Extends composer unit coverage for both parameter normalization and transaction composition output equivalence.

Tests:

  • python -m pytest counterpartycore/test/units/api/composer_test.py -q
  • python -m ruff check counterpartycore/lib/api/composer.py counterpartycore/test/units/api/composer_test.py
  • python -m ruff format --check counterpartycore/lib/api/composer.py counterpartycore/test/units/api/composer_test.py
  • git diff --check

Bounty payment address (BTC): bc1qev5ant33v5y89qqjvcf4mh9hlax5svqf5xd7gc

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.

1 participant