Struct ethcore::miner::MinerOptions
source · [−]pub struct MinerOptions {Show 16 fields
pub force_sealing: bool,
pub reseal_on_external_tx: bool,
pub reseal_on_own_tx: bool,
pub reseal_on_uncle: bool,
pub reseal_min_period: Duration,
pub reseal_max_period: Duration,
pub pending_set: PendingSet,
pub work_queue_size: usize,
pub enable_resubmission: bool,
pub infinite_pending_block: bool,
pub tx_queue_strategy: PrioritizationStrategy,
pub tx_queue_penalization: Penalization,
pub tx_queue_no_unfamiliar_locals: bool,
pub refuse_service_transactions: bool,
pub pool_limits: Options,
pub pool_verification_options: Options,
}Expand description
Configures the behaviour of the miner.
Fields
force_sealing: boolForce the miner to reseal, even when nobody has asked for work.
reseal_on_external_tx: boolReseal on receipt of new external transactions.
reseal_on_own_tx: boolReseal on receipt of new local transactions.
reseal_on_uncle: boolReseal when new uncle block has been imported.
reseal_min_period: DurationMinimum period between transaction-inspired reseals.
reseal_max_period: DurationMaximum period between blocks (enables force sealing after that).
pending_set: PendingSetWhether we should fallback to providing all the queue’s transactions or just pending.
work_queue_size: usizeHow many historical work packages can we store before running out?
enable_resubmission: boolCan we submit two different solutions for the same block and expect both to result in an import?
infinite_pending_block: boolCreate a pending block with maximal possible gas limit. NOTE: Such block will contain all pending transactions but will be invalid if mined.
tx_queue_strategy: PrioritizationStrategyStrategy to use for prioritizing transactions in the queue.
tx_queue_penalization: PenalizationSimple senders penalization.
tx_queue_no_unfamiliar_locals: boolDo we want to mark transactions recieved locally (e.g. RPC) as local if we don’t have the sending account?
refuse_service_transactions: boolDo we refuse to accept service transactions even if sender is certified.
pool_limits: OptionsTransaction pool limits.
pool_verification_options: OptionsInitial transaction verification options.
Trait Implementations
sourceimpl Debug for MinerOptions
impl Debug for MinerOptions
sourceimpl Default for MinerOptions
impl Default for MinerOptions
sourceimpl PartialEq<MinerOptions> for MinerOptions
impl PartialEq<MinerOptions> for MinerOptions
sourcefn eq(&self, other: &MinerOptions) -> bool
fn eq(&self, other: &MinerOptions) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MinerOptions) -> bool
fn ne(&self, other: &MinerOptions) -> bool
This method tests for !=.
impl StructuralPartialEq for MinerOptions
Auto Trait Implementations
impl RefUnwindSafe for MinerOptions
impl Send for MinerOptions
impl Sync for MinerOptions
impl Unpin for MinerOptions
impl UnwindSafe for MinerOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more