Summary
Handle SubmitSharesExtended messages from extended channel proxies, validate proof-of-work, and respond with success/error.
Context
Extended channel submissions include the extranonce chosen by the proxy, in addition to the standard fields. The ExtendedChannel::validate_share() method validates the full share including the proxy-chosen extranonce against the allocated prefix and size.
Tasks
Acceptance Criteria
- Valid extended shares with correct extranonce are accepted
- Extranonce outside allocated range is rejected
- Block-found triggers block submission
- Unit tests: valid extended share, block found, extranonce validation, invalid extranonce
Dependencies
Summary
Handle
SubmitSharesExtendedmessages from extended channel proxies, validate proof-of-work, and respond with success/error.Context
Extended channel submissions include the extranonce chosen by the proxy, in addition to the standard fields. The
ExtendedChannel::validate_share()method validates the full share including the proxy-chosen extranonce against the allocated prefix and size.Tasks
SubmitSharesExtendedto the correctExtendedChannelbychannel_idextended_channel.validate_share(msg)ShareValidationResultvariants (same as standard, but with extended extranonce context):Valid(hash)->SubmitShares.SuccessBlockFound(hash, template_id, coinbase)-> trigger block assemblySubmitShares.ErrorAcceptance Criteria
Dependencies