Skip to content

fix mismatches in channel_bit and message_type according to the specs#2095

Open
lucasbalieiro wants to merge 3 commits intostratum-mining:mainfrom
lucasbalieiro:fix-reconnect-bit-definition
Open

fix mismatches in channel_bit and message_type according to the specs#2095
lucasbalieiro wants to merge 3 commits intostratum-mining:mainfrom
lucasbalieiro:fix-reconnect-bit-definition

Conversation

@lucasbalieiro
Copy link
Collaborator

@lucasbalieiro lucasbalieiro commented Feb 20, 2026

close #2094

MAJOR BUMP mining_sv2.
MAJOR BUMP job_declaration_sv2

@plebhash
Copy link
Member

plebhash commented Feb 20, 2026

we'll have to bump mining_sv2 MAJOR

and I THINK common_messages_sv2 MINOR but could use a sanity check on this #2073 already bumped common_messages_sv2 MAJOR for the upcoming release

@lucasbalieiro lucasbalieiro force-pushed the fix-reconnect-bit-definition branch from 8f9c031 to 8a353c6 Compare February 20, 2026 18:41
@lucasbalieiro lucasbalieiro changed the title move definition of CHANNEL_BIT_RECONNECT fix mismatches in channel_bit and message_type according to the specs Feb 20, 2026
@lucasbalieiro lucasbalieiro force-pushed the fix-reconnect-bit-definition branch from 8a353c6 to c146bcf Compare February 20, 2026 18:52
@lucasbalieiro lucasbalieiro marked this pull request as ready for review February 20, 2026 18:52
@plebhash
Copy link
Member

as we expanded the scope on this PR, we should keep unrelated changes on atomic commits

@lucasbalieiro lucasbalieiro force-pushed the fix-reconnect-bit-definition branch from c146bcf to 87a3c5c Compare February 20, 2026 19:33
@lucasbalieiro
Copy link
Collaborator Author

as we expanded the scope on this PR, we should keep unrelated changes on atomic commits

DONE:
d16c821
5c2c6a0
87a3c5c

pub const MESSAGE_TYPE_PUSH_SOLUTION: u8 = 0x60;

// In the Job Declaration protocol, the `channel_msg` bit is always unset,
// except for `SUBMIT_SOLUTION_JD`, which requires a specific channel reference.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// except for `PUSH_SOLUTION`, which requires a specific channel reference.

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.

parsers_sv2 and subprotocols has some mismatches in channel_bit and message_types

3 participants