Expand description
§Job Declaration Protocol
job_declaration_sv2 is a Rust crate that implements a set of messages defined in the Job
Declaration Protocol of Stratum V2. This protocol runs between the Job Declarator Server
(JDS) and Job Declarator Client (JDC).
§Build Options
This crate can be built with the following features:
std: Enables support for standard library features.
For further information about the messages, please refer to Stratum V2 documentation - Job Declaration.
Structs§
- Allocate
Mining JobToken - Message used by JDC to request an identifier for a future mining job from JDS.
- Allocate
Mining JobToken Success - Message used by JDS to accept
AllocateMiningJobTokenmessage. - Declare
Mining Job - Message used by JDC to proposes a selected set of transactions to JDS they wish to mine on.
- Declare
Mining JobError - Messaged used by JDS to reject
DeclareMiningJobmessage. - Declare
Mining JobSuccess - Messaged used by JDS to accept
DeclareMiningJobmessage. - Provide
Missing Transactions - Message used by the JDS to ask for transactions that it did not recognize from
crate::DeclareMiningJobmessage. - Provide
Missing Transactions Success - Message used by JDC to accept
ProvideMissingTransactionsmessage and provide the full list of transactions in the order they were requested byProvideMissingTransactions. - Push
Solution - Message used by JDC to push a solution to JDS as soon as it finds a new valid block.
Constants§
- CHANNEL_
BIT_ ALLOCATE_ MINING_ JOB_ TOKEN - CHANNEL_
BIT_ ALLOCATE_ MINING_ JOB_ TOKEN_ SUCCESS - CHANNEL_
BIT_ DECLARE_ MINING_ JOB - CHANNEL_
BIT_ DECLARE_ MINING_ JOB_ ERROR - CHANNEL_
BIT_ DECLARE_ MINING_ JOB_ SUCCESS - CHANNEL_
BIT_ PROVIDE_ MISSING_ TRANSACTIONS - CHANNEL_
BIT_ PROVIDE_ MISSING_ TRANSACTIONS_ SUCCESS - CHANNEL_
BIT_ SUBMIT_ SOLUTION_ JD - MESSAGE_
TYPE_ ALLOCATE_ MINING_ JOB_ TOKEN - MESSAGE_
TYPE_ ALLOCATE_ MINING_ JOB_ TOKEN_ SUCCESS - MESSAGE_
TYPE_ DECLARE_ MINING_ JOB - MESSAGE_
TYPE_ DECLARE_ MINING_ JOB_ ERROR - MESSAGE_
TYPE_ DECLARE_ MINING_ JOB_ SUCCESS - MESSAGE_
TYPE_ PROVIDE_ MISSING_ TRANSACTIONS - MESSAGE_
TYPE_ PROVIDE_ MISSING_ TRANSACTIONS_ SUCCESS - MESSAGE_
TYPE_ PUSH_ SOLUTION