Skip to content

Commit

Permalink
Allow **potentianl** dead code
Browse files Browse the repository at this point in the history
.. should be examined later to check if need to be removed
  • Loading branch information
jbesraa committed Oct 8, 2024
1 parent 5b065e9 commit c907a4c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/jd-client/src/lib/downstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub struct DownstreamMiningNode {
receiver: Receiver<EitherFrame>,
sender: Sender<EitherFrame>,
pub status: DownstreamMiningNodeStatus,
#[allow(dead_code)]
pub prev_job_id: Option<u32>,
solution_sender: Sender<SubmitSolution<'static>>,
withhold: bool,
Expand Down
2 changes: 2 additions & 0 deletions roles/jd-client/src/lib/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use stratum_common::bitcoin::util::uint::ParseLengthError;

pub type ProxyResult<'a, T> = core::result::Result<T, Error<'a>>;

#[allow(dead_code)]
#[derive(Debug)]
pub enum ChannelSendError<'a> {
SubmitSharesExtended(
Expand All @@ -28,6 +29,7 @@ pub enum ChannelSendError<'a> {

#[derive(Debug)]
pub enum Error<'a> {
#[allow(dead_code)]
VecToSlice32(Vec<u8>),
/// Errors on bad CLI argument input.
BadCliArgs,
Expand Down
1 change: 1 addition & 0 deletions roles/jd-client/src/lib/proxy_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub struct ProxyConfig {
pub cert_validity_sec: u64,
pub tp_address: String,
pub tp_authority_public_key: Option<Secp256k1PublicKey>,
#[allow(dead_code)]
pub retry: u32,
pub upstreams: Vec<Upstream>,
#[serde(deserialize_with = "duration_from_toml")]
Expand Down
2 changes: 2 additions & 0 deletions roles/jd-client/src/lib/upstream_sv2/upstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ pub struct Upstream {
tx_status: status::Sender,
/// Minimum `extranonce2` size. Initially requested in the `jdc-config.toml`, and ultimately
/// set by the SV2 Upstream via the SV2 `OpenExtendedMiningChannelSuccess` message.
#[allow(dead_code)]
pub min_extranonce_size: u16,
#[allow(dead_code)]
pub upstream_extranonce1_size: usize,
/// String be included in coinbase tx input scriptsig
pub pool_signature: String,
Expand Down
1 change: 1 addition & 0 deletions roles/mining-proxy/src/lib/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub type EitherFrame = StandardEitherFrame<Message>;
#[derive(Debug)]
#[allow(clippy::large_enum_variant)]
#[allow(clippy::enum_variant_names)]
#[allow(dead_code)]
pub enum Error {
SendError(SendError<EitherFrame>),
UpstreamNotAvailabe(SocketAddr),
Expand Down
1 change: 1 addition & 0 deletions roles/translator/src/lib/proxy/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ mod test {
pub mod test_utils {
use super::*;

#[allow(dead_code)]
pub struct BridgeInterface {
pub tx_sv1_submit: Sender<DownstreamMessages>,
pub rx_sv2_submit_shares_ext: Receiver<SubmitSharesExtended<'static>>,
Expand Down

0 comments on commit c907a4c

Please sign in to comment.