Include RPC configurability for max tx gas limit.

Also Move the gas limit into the transaction queue from the miner.
This commit is contained in:
Gav Wood
2016-06-27 20:19:01 +02:00
parent a102015ecf
commit 10aa32b0f5
8 changed files with 82 additions and 16 deletions

View File

@@ -89,6 +89,7 @@ impl Configuration {
reseal_on_external_tx: ext,
reseal_on_own_tx: own,
max_tx_gas: self.args.flag_max_tx_gas.as_ref().map(|d| Self::decode_u256(d, "--max-tx-gas")),
tx_queue_size: self.args.flag_tx_queue_size,
pending_set: match self.args.flag_relay_set.as_str() {
"cheap" => PendingSet::AlwaysQueue,
"strict" => PendingSet::AlwaysSealing,