Skip to content

common_messages_sv2: add protocol-version-mismatch SetupConnectionError error_code - #2287

Merged
plebhash merged 1 commit into
stratum-mining:mainfrom
plebhash:2026-08-06-protocol-version-mismatch-error-code
Aug 11, 2026
Merged

common_messages_sv2: add protocol-version-mismatch SetupConnectionError error_code#2287
plebhash merged 1 commit into
stratum-mining:mainfrom
plebhash:2026-08-06-protocol-version-mismatch-error-code

Conversation

@plebhash

@plebhash plebhash commented Aug 6, 2026

Copy link
Copy Markdown
Member

@plebhash plebhash changed the title `common-messages: add protocol-version-mismatch SetupConnectionError e… common_messages_sv2: add protocol-version-mismatch SetupConnectionError error_code Aug 6, 2026
@plebhash
plebhash force-pushed the 2026-08-06-protocol-version-mismatch-error-code branch from a8d76eb to 1e2ec24 Compare August 7, 2026 00:17

@bit-aloo bit-aloo 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.

Ah!! we never really checked for it. Makes sense.

@plebhash
plebhash force-pushed the 2026-08-06-protocol-version-mismatch-error-code branch from 1e2ec24 to 505a34b Compare August 8, 2026 00:41
…rror code

Per SV2 spec, servers must respond to SetupConnection with a
SetupConnectionError when they cannot support any protocol version in
the client's requested [min_version, max_version] range.
@plebhash
plebhash force-pushed the 2026-08-06-protocol-version-mismatch-error-code branch from 505a34b to 6b5130e Compare August 11, 2026 19:14
@plebhash
plebhash merged commit be9ce53 into stratum-mining:main Aug 11, 2026
14 of 16 checks passed
@plebhash
plebhash deleted the 2026-08-06-protocol-version-mismatch-error-code branch August 11, 2026 19:47
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.

3 participants