diff --git a/protocols/v2/roles-logic-sv2/src/parsers.rs b/protocols/v2/roles-logic-sv2/src/parsers.rs index e48a196923..a1bbbb470e 100644 --- a/protocols/v2/roles-logic-sv2/src/parsers.rs +++ b/protocols/v2/roles-logic-sv2/src/parsers.rs @@ -114,11 +114,11 @@ pub enum JobNegotiation<'a> { #[cfg_attr(feature = "with_serde", serde(borrow))] AllocateMiningJobToken(AllocateMiningJobToken<'a>), #[cfg_attr(feature = "with_serde", serde(borrow))] - AllocateMiningJobTokenSuccess(AllocateMiningJobTokenSuccess<'a>), + AllocateMiningJobTokenSuccess(AllocateMiningJobTokenSuccess), #[cfg_attr(feature = "with_serde", serde(borrow))] CommitMiningJob(CommitMiningJob<'a>), #[cfg_attr(feature = "with_serde", serde(borrow))] - CommitMiningJobSuccess(CommitMiningJobSuccess<'a>), + CommitMiningJobSuccess(CommitMiningJobSuccess), #[cfg_attr(feature = "with_serde", serde(borrow))] CommitMiningJobError(CommitMiningJobError<'a>), IdentifyTransactions(IdentifyTransactions), diff --git a/protocols/v2/subprotocols/job-negotiation/src/allocate_mining_job.rs b/protocols/v2/subprotocols/job-negotiation/src/allocate_mining_job.rs index 1eaa8954f6..439b7020ae 100644 --- a/protocols/v2/subprotocols/job-negotiation/src/allocate_mining_job.rs +++ b/protocols/v2/subprotocols/job-negotiation/src/allocate_mining_job.rs @@ -2,7 +2,7 @@ use alloc::vec::Vec; #[cfg(not(feature = "with_serde"))] use binary_sv2::binary_codec_sv2; -use binary_sv2::{Deserialize, Serialize, Str0255, B0255}; +use binary_sv2::{Deserialize, Serialize, Str0255}; use core::convert::TryInto; /// # AllocateMiningJobToken(Client->Server) @@ -30,14 +30,14 @@ pub struct AllocateMiningJobToken<'decoder> { /// transaction outputs regularly, it should simply prefer to use the maximum of all such output /// sizes as the coinbase_output_max_additional_size value. #[derive(Serialize, Deserialize, Debug, Clone)] -pub struct AllocateMiningJobTokenSuccess<'decoder> { +pub struct AllocateMiningJobTokenSuccess { /// Unique identifier for pairing the response. pub request_id: u32, /// Token that makes the client eligible for committing a mining job for /// approval/transaction negotiation or for identifying custom mining job /// on mining connection. #[cfg_attr(feature = "with_serde", serde(borrow))] - pub mining_job_token: B0255<'decoder>, + pub mining_job_token: u32, /// The maximum additional serialized bytes which the pool will add in /// coinbase transaction outputs. See discussion in the Template /// Distribution Protocol’s CoinbaseOutputDataSize message for more diff --git a/protocols/v2/subprotocols/job-negotiation/src/commit_mining_job.rs b/protocols/v2/subprotocols/job-negotiation/src/commit_mining_job.rs index 6e34ca62ac..3fb6a52ec2 100644 --- a/protocols/v2/subprotocols/job-negotiation/src/commit_mining_job.rs +++ b/protocols/v2/subprotocols/job-negotiation/src/commit_mining_job.rs @@ -63,7 +63,7 @@ pub struct CommitMiningJob<'decoder> { /// # CommitMiningJob.Success (Server->Client) #[derive(Serialize, Deserialize, Debug, Clone)] -pub struct CommitMiningJobSuccess<'decoder> { +pub struct CommitMiningJobSuccess { /// Identifier of the original request. pub request_id: u32, /// Unique identifier provided by the pool of the job that the Job Negotiator @@ -76,7 +76,7 @@ pub struct CommitMiningJobSuccess<'decoder> { /// message on each Mining Protocol client which wishes to mine using the /// negotiated job. #[cfg_attr(feature = "with_serde", serde(borrow))] - pub new_mining_job_token: B0255<'decoder>, + pub new_mining_job_token: u32, } /// # CommitMiningJob.Error (Server->Client)