Crate job_declaration_sv2

Crate job_declaration_sv2 

Source
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§

AllocateMiningJobToken
Message used by JDC to request an identifier for a future mining job from JDS.
AllocateMiningJobTokenSuccess
Message used by JDS to accept AllocateMiningJobToken message.
DeclareMiningJob
Message used by JDC to proposes a selected set of transactions to JDS they wish to mine on.
DeclareMiningJobError
Messaged used by JDS to reject DeclareMiningJob message.
DeclareMiningJobSuccess
Messaged used by JDS to accept DeclareMiningJob message.
ProvideMissingTransactions
Message used by the JDS to ask for transactions that it did not recognize from crate::DeclareMiningJob message.
ProvideMissingTransactionsSuccess
Message used by JDC to accept ProvideMissingTransactions message and provide the full list of transactions in the order they were requested by ProvideMissingTransactions.
PushSolution
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