Skip to content

feat(channels_sv2, sv1_api): support upstream prefix updates and identify extranonce-subscription clients - #2319

Open
GitGab19 wants to merge 2 commits into
stratum-mining:mainfrom
GitGab19:feat/extranonce-prefix-updates
Open

feat(channels_sv2, sv1_api): support upstream prefix updates and identify extranonce-subscription clients#2319
GitGab19 wants to merge 2 commits into
stratum-mining:mainfrom
GitGab19:feat/extranonce-prefix-updates

Conversation

@GitGab19

@GitGab19 GitGab19 commented Aug 27, 2026

Copy link
Copy Markdown
Member

This PR is a prerequisite for a final PR on sv2-apps which is aiming to close almost all the currently-tracked issues of tProxy (specifically stratum-mining/sv2-apps#36, stratum-mining/sv2-apps#139, stratum-mining/sv2-apps#164, stratum-mining/sv2-apps#386, stratum-mining/sv2-apps#650)

It has two commits:

  • channels_sv2: add set_upstream_prefix on ExtranonceAllocator, ExtranoncePrefix, ExtendedChannel, and StandardChannel. Preserves local suffix, allocations, bitmap state, and rollable size. Validates total extranonce length transactionally.

  • sv1_api: pass client_id into handle_extranonce_subscribe and make the receiver &mut self. This lets tProxy record which downstreams support mining.set_extranonce without keeping a separate set.

companion stratum-mining/sv2-apps#823

@GitGab19
GitGab19 requested review from bit-aloo and plebhash and removed request for bit-aloo August 27, 2026 13:41
@GitGab19

This comment was marked as resolved.

@GitGab19
GitGab19 marked this pull request as draft August 27, 2026 14:42
@GitGab19

This comment was marked as resolved.

@GitGab19
GitGab19 force-pushed the feat/extranonce-prefix-updates branch from a08bf0f to c95fd6b Compare August 27, 2026 19:47
@GitGab19
GitGab19 force-pushed the feat/extranonce-prefix-updates branch from c95fd6b to e5a718b Compare August 27, 2026 20:25
GitGab19 added a commit to GitGab19/sv2-apps that referenced this pull request Aug 27, 2026
Temporary dependency override for stratum-mining/stratum#2319.
Revert to `branch = "main"` and run `cargo update -p stratum-core` across all
workspaces after the companion PR merges.
GitGab19 added a commit to GitGab19/sv2-apps that referenced this pull request Aug 27, 2026
Temporary dependency override for stratum-mining/stratum#2319.
Revert to `branch = "main"` and run `cargo update -p stratum-core` across all
workspaces after the companion PR merges.
@GitGab19
GitGab19 marked this pull request as ready for review August 27, 2026 21:14
GitGab19 added a commit to GitGab19/sv2-apps that referenced this pull request Aug 27, 2026
Temporary dependency override for stratum-mining/stratum#2319.
Revert to `branch = "main"` and run `cargo update -p stratum-core` across all
workspaces after the companion PR merges.
GitGab19 added a commit to GitGab19/sv2-apps that referenced this pull request Aug 28, 2026
Temporary dependency override for stratum-mining/stratum#2319.
Revert to `branch = "main"` and run `cargo update -p stratum-core` across all
workspaces after the companion PR merges.
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