Increase size of transaction queue by default
This commit is contained in:
parent
ecf098e9a4
commit
a9391f91f7
@ -81,7 +81,7 @@ impl Default for MinerOptions {
|
|||||||
reseal_on_external_tx: false,
|
reseal_on_external_tx: false,
|
||||||
reseal_on_own_tx: true,
|
reseal_on_own_tx: true,
|
||||||
tx_gas_limit: !U256::zero(),
|
tx_gas_limit: !U256::zero(),
|
||||||
tx_queue_size: 1024,
|
tx_queue_size: 2048,
|
||||||
pending_set: PendingSet::AlwaysQueue,
|
pending_set: PendingSet::AlwaysQueue,
|
||||||
reseal_min_period: Duration::from_secs(2),
|
reseal_min_period: Duration::from_secs(2),
|
||||||
work_queue_size: 20,
|
work_queue_size: 20,
|
||||||
|
@ -67,7 +67,7 @@ usd_per_eth = "auto"
|
|||||||
price_update_period = "hourly"
|
price_update_period = "hourly"
|
||||||
gas_floor_target = "4700000"
|
gas_floor_target = "4700000"
|
||||||
gas_cap = "6283184"
|
gas_cap = "6283184"
|
||||||
tx_queue_size = 1024
|
tx_queue_size = 2048
|
||||||
tx_gas_limit = "6283184"
|
tx_gas_limit = "6283184"
|
||||||
extra_data = "Parity"
|
extra_data = "Parity"
|
||||||
remove_solved = false
|
remove_solved = false
|
||||||
|
@ -193,7 +193,7 @@ usage! {
|
|||||||
or |c: &Config| otry!(c.mining).gas_cap.clone(),
|
or |c: &Config| otry!(c.mining).gas_cap.clone(),
|
||||||
flag_extra_data: Option<String> = None,
|
flag_extra_data: Option<String> = None,
|
||||||
or |c: &Config| otry!(c.mining).extra_data.clone().map(Some),
|
or |c: &Config| otry!(c.mining).extra_data.clone().map(Some),
|
||||||
flag_tx_queue_size: usize = 1024usize,
|
flag_tx_queue_size: usize = 2048usize,
|
||||||
or |c: &Config| otry!(c.mining).tx_queue_size.clone(),
|
or |c: &Config| otry!(c.mining).tx_queue_size.clone(),
|
||||||
flag_remove_solved: bool = false,
|
flag_remove_solved: bool = false,
|
||||||
or |c: &Config| otry!(c.mining).remove_solved.clone(),
|
or |c: &Config| otry!(c.mining).remove_solved.clone(),
|
||||||
@ -522,7 +522,7 @@ mod tests {
|
|||||||
flag_gas_floor_target: "4700000".into(),
|
flag_gas_floor_target: "4700000".into(),
|
||||||
flag_gas_cap: "6283184".into(),
|
flag_gas_cap: "6283184".into(),
|
||||||
flag_extra_data: Some("Parity".into()),
|
flag_extra_data: Some("Parity".into()),
|
||||||
flag_tx_queue_size: 1024usize,
|
flag_tx_queue_size: 2048usize,
|
||||||
flag_remove_solved: false,
|
flag_remove_solved: false,
|
||||||
flag_notify_work: Some("http://localhost:3001".into()),
|
flag_notify_work: Some("http://localhost:3001".into()),
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ impl Default for MinerExtras {
|
|||||||
extra_data: version_data(),
|
extra_data: version_data(),
|
||||||
gas_floor_target: U256::from(4_700_000),
|
gas_floor_target: U256::from(4_700_000),
|
||||||
gas_ceil_target: U256::from(6_283_184),
|
gas_ceil_target: U256::from(6_283_184),
|
||||||
transactions_limit: 1024,
|
transactions_limit: 2048,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user