# Struct ethcore::miner::MinerOptions [−] [src]

    pub struct MinerOptions {
        pub new_work_notify: Vec<String>,
        pub force_sealing: bool,
        pub reseal_on_external_tx: bool,
        pub reseal_on_own_tx: bool,
        pub reseal_min_period: Duration,
        pub tx_gas_limit: U256,
        pub tx_queue_size: usize,
        pub tx_queue_strategy: PrioritizationStrategy,
        pub pending_set: PendingSet,
        pub work_queue_size: usize,
        pub enable_resubmission: bool,
        pub tx_queue_gas_limit: GasLimit,
        pub tx_queue_banning: Banning,
        pub refuse_service_transactions: bool,
    }

Configures the behaviour of the miner.

## Fields

`new_work_notify: Vec<String>`

URLs to notify when there is new work.

`force_sealing: bool`

Force the miner to reseal, even when nobody has asked for work.

`reseal_on_external_tx: bool`

Reseal on receipt of new external transactions.

`reseal_on_own_tx: bool`

Reseal on receipt of new local transactions.

`reseal_min_period: Duration`

Minimum period between transaction-inspired reseals.

`tx_gas_limit: U256`

Maximum amount of gas to bother considering for block insertion.

`tx_queue_size: usize`

Maximum size of the transaction queue.

`tx_queue_strategy: PrioritizationStrategy`

Strategy to use for prioritizing transactions in the queue.

`pending_set: PendingSet`

Whether we should fallback to providing all the queue's transactions or just pending.

`work_queue_size: usize`

How many historical work packages can we store before running out?

`enable_resubmission: bool`

Can we submit two different solutions for the same block and expect both to result in an import?

`tx_queue_gas_limit: GasLimit`

Global gas limit for all transaction in the queue except for local and retracted.

`tx_queue_banning: Banning`

Banning settings.

`refuse_service_transactions: bool`

Do we refuse to accept service transactions even if sender is certified.

## Trait Implementations

### `impl Debug for MinerOptions`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl PartialEq for MinerOptions`
[src]

#### `fn eq(&self, __arg_0: &MinerOptions) -> bool`

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, __arg_0: &MinerOptions) -> bool`

This method tests for `!=`.

### `impl Default for MinerOptions`
[src]

#### `fn default() -> Self`

Returns the "default value" for a type. Read more

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)