Skip to content

feat(common-messages): add has_declare_tx_data helper function#2129

Merged
plebhash merged 2 commits into
stratum-mining:mainfrom
wcqy-ye:add-has-declare-tx-data-helper
Apr 30, 2026
Merged

feat(common-messages): add has_declare_tx_data helper function#2129
plebhash merged 2 commits into
stratum-mining:mainfrom
wcqy-ye:add-has-declare-tx-data-helper

Conversation

@wcqy-ye

@wcqy-ye wcqy-ye commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Add helper function to check DECLARE_TX_DATA flag in SetupConnection.flags for Job Declaration Protocol, following the same pattern as existing helpers (has_requires_std_job, has_version_rolling, has_work_selection). Closes #2117

Comment thread sv2/subprotocols/common-messages/src/setup_connection.rs Outdated
Comment thread sv2/subprotocols/common-messages/src/setup_connection.rs Outdated

@Shourya742 Shourya742 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer adding it as an associated method on SetupConnection, but it looks like we would need to change a few more things here. For now, this is fine.

@plebhash plebhash force-pushed the add-has-declare-tx-data-helper branch from 0840065 to 1ad5d3a Compare April 29, 2026 23:31
@plebhash plebhash force-pushed the add-has-declare-tx-data-helper branch from 1ad5d3a to db453f9 Compare April 29, 2026 23:32
@plebhash plebhash added the ready-to-be-merged triggers auto rebase bot label Apr 29, 2026
@plebhash plebhash merged commit f14226a into stratum-mining:main Apr 30, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-be-merged triggers auto rebase bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

common_messages_sv2::lib needs a has_declare_tx_data helper

3 participants