pub struct SubmitShareWithChannelId {
pub channel_id: ChannelId,
pub downstream_id: DownstreamId,
pub share: Submit<'static>,
pub extranonce: Vec<u8>,
pub extranonce2_len: usize,
pub version_rolling_mask: Option<HexU32Be>,
pub job_version: Option<u32>,
}Expand description
A wrapper around a mining.submit message with additional channel information.
This struct contains all the necessary information to process a share submission from an SV1 miner, including the share data itself and metadata needed for proper routing and validation.
Fields§
§channel_id: ChannelIdThe SV2 channel ID this share belongs to
downstream_id: DownstreamIdThe downstream connection ID that submitted this share
The actual SV1 share submission data
extranonce: Vec<u8>The complete extranonce used for this share
extranonce2_len: usizeThe length of the extranonce2 field
version_rolling_mask: Option<HexU32Be>Optional version rolling mask for the share
job_version: Option<u32>The version field from the job, used for validation
Trait Implementations§
Source§fn clone(&self) -> SubmitShareWithChannelId
fn clone(&self) -> SubmitShareWithChannelId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more