Struct grin_servers::common::types::StratumServerConfig
source · pub struct StratumServerConfig {
pub enable_stratum_server: Option<bool>,
pub stratum_server_addr: Option<String>,
pub attempt_time_per_block: u32,
pub minimum_share_difficulty: u64,
pub wallet_listener_url: String,
pub burn_reward: bool,
}
Expand description
Stratum (Mining server) configuration
Fields§
§enable_stratum_server: Option<bool>
Run a stratum mining server (the only way to communicate to mine this node via grin-miner
stratum_server_addr: Option<String>
If enabled, the address and port to listen on
attempt_time_per_block: u32
How long to wait before stopping the miner, recollecting transactions and starting again
Minimum difficulty for worker shares
wallet_listener_url: String
Base address to the HTTP wallet receiver
burn_reward: bool
Attributes the reward to a random private key instead of contacting the wallet receiver. Mostly used for tests.
Trait Implementations§
source§impl Clone for StratumServerConfig
impl Clone for StratumServerConfig
source§fn clone(&self) -> StratumServerConfig
fn clone(&self) -> StratumServerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StratumServerConfig
impl Debug for StratumServerConfig
source§impl Default for StratumServerConfig
impl Default for StratumServerConfig
source§fn default() -> StratumServerConfig
fn default() -> StratumServerConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StratumServerConfig
impl<'de> Deserialize<'de> for StratumServerConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for StratumServerConfig
impl PartialEq for StratumServerConfig
source§fn eq(&self, other: &StratumServerConfig) -> bool
fn eq(&self, other: &StratumServerConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StratumServerConfig
impl Serialize for StratumServerConfig
impl StructuralPartialEq for StratumServerConfig
Auto Trait Implementations§
impl Freeze for StratumServerConfig
impl RefUnwindSafe for StratumServerConfig
impl Send for StratumServerConfig
impl Sync for StratumServerConfig
impl Unpin for StratumServerConfig
impl UnwindSafe for StratumServerConfig
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
source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.