refine extranonce assumptions#1944
Merged
plebhash merged 14 commits intoOct 14, 2025
Merged
Conversation
a4edd07 to
40a14f5
Compare
GitGab19
reviewed
Oct 13, 2025
plebhash
added a commit
to plebhash/stratum
that referenced
this pull request
Oct 13, 2025
11704ad to
6823db3
Compare
47b4a89 to
2549a5d
Compare
GitGab19
approved these changes
Oct 14, 2025
Shourya742
reviewed
Oct 14, 2025
Shourya742
left a comment
Member
There was a problem hiding this comment.
LGTM. Some minor suggestions.
2549a5d to
4020799
Compare
This was referenced Oct 17, 2025
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #1861
summary of changes:
try_strip_bip141for better maintainabilityrollable_extranonce_sizeinto considerationfull_extranonce_sizeof extended channels (both server and client sides) is always calculated based onextranonce_prefixplusrollable_extranonce_size, and no longer assumed to beMAX_EXTRANONCE_LENrollable_extranonce_sizenever changes across the lifespan of a channel (even afterSetExtranoncePrefix)JobFactorytakesfull_extranonce_sizeas a parameter on a few methods, which is used to set appropriatescriptSig_lenvalues insidecoinbase_tx_prefixGroupChanneltakesfull_extranonce_sizeas a parameter on its constructor, sinceJobFactorynow needs it