Increase size of transaction queue by default

This commit is contained in:
Tomasz Drwięga 2016-10-06 10:20:05 +02:00
parent ecf098e9a4
commit a9391f91f7
5 changed files with 6 additions and 6 deletions

View File

@ -81,7 +81,7 @@ impl Default for MinerOptions {
reseal_on_external_tx: false,
reseal_on_own_tx: true,
tx_gas_limit: !U256::zero(),
tx_queue_size: 1024,
tx_queue_size: 2048,
pending_set: PendingSet::AlwaysQueue,
reseal_min_period: Duration::from_secs(2),
work_queue_size: 20,

View File

@ -67,7 +67,7 @@ usd_per_eth = "auto"
price_update_period = "hourly"
gas_floor_target = "4700000"
gas_cap = "6283184"
tx_queue_size = 1024
tx_queue_size = 2048
tx_gas_limit = "6283184"
extra_data = "Parity"
remove_solved = false

View File

@ -193,7 +193,7 @@ usage! {
or |c: &Config| otry!(c.mining).gas_cap.clone(),
flag_extra_data: Option<String> = None,
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(),
flag_remove_solved: bool = false,
or |c: &Config| otry!(c.mining).remove_solved.clone(),
@ -522,7 +522,7 @@ mod tests {
flag_gas_floor_target: "4700000".into(),
flag_gas_cap: "6283184".into(),
flag_extra_data: Some("Parity".into()),
flag_tx_queue_size: 1024usize,
flag_tx_queue_size: 2048usize,
flag_remove_solved: false,
flag_notify_work: Some("http://localhost:3001".into()),

View File

@ -125,7 +125,7 @@ impl Configuration {
ImportFromGethAccounts {
to: dirs.keys,
testnet: self.args.flag_testnet
}
}
);
Cmd::Account(account_cmd)
} else if self.args.cmd_wallet {

View File

@ -206,7 +206,7 @@ impl Default for MinerExtras {
extra_data: version_data(),
gas_floor_target: U256::from(4_700_000),
gas_ceil_target: U256::from(6_283_184),
transactions_limit: 1024,
transactions_limit: 2048,
}
}
}