Added --tx-queue-no-early-reject flag to disable early tx queue rejects (#9143)
* Added --tx-queue-no-early-reject flag to disable early tx queue rejects because of low gas price * Fixed failing tests, clarified comments and simplified no_early_reject field name. * Added test case for the --tx-queue-no-early-reject flag
This commit is contained in:
committed by
Andronik Ordian
parent
4848c384cd
commit
1b1941a896
@@ -176,6 +176,7 @@ impl Default for MinerOptions {
|
||||
minimal_gas_price: DEFAULT_MINIMAL_GAS_PRICE.into(),
|
||||
block_gas_limit: U256::max_value(),
|
||||
tx_gas_limit: U256::max_value(),
|
||||
no_early_reject: false,
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -283,6 +284,7 @@ impl Miner {
|
||||
minimal_gas_price,
|
||||
block_gas_limit: U256::max_value(),
|
||||
tx_gas_limit: U256::max_value(),
|
||||
no_early_reject: false,
|
||||
},
|
||||
reseal_min_period: Duration::from_secs(0),
|
||||
..Default::default()
|
||||
@@ -1338,6 +1340,7 @@ mod tests {
|
||||
minimal_gas_price: 0.into(),
|
||||
block_gas_limit: U256::max_value(),
|
||||
tx_gas_limit: U256::max_value(),
|
||||
no_early_reject: false,
|
||||
},
|
||||
},
|
||||
GasPricer::new_fixed(0u64.into()),
|
||||
|
||||
Reference in New Issue
Block a user