We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71cca5c commit 3f92612Copy full SHA for 3f92612
crates/rpc/rpc-eth-impl/src/eth.rs
@@ -1508,9 +1508,12 @@ impl EthApiServer for EthApi {
1508
}
1509
1510
let r = self.send_transaction_with_signature(tx)?;
1511
+ // evm txs are packed every ratio blocks
1512
+ // always generate another ratio blocks to ensure the tx is packed
1513
+ let ratio = self.tx_pool.machine().params().evm_transaction_block_ratio;
1514
if self.config.dev_pack_tx_immediately {
1515
// Try to pack and execute this new tx.
- for _ in 0..DEFERRED_STATE_EPOCH_COUNT {
1516
+ for _ in 0..(DEFERRED_STATE_EPOCH_COUNT + ratio - 1) {
1517
let generated = self.generate_one_block(
1518
1, /* num_txs */
1519
self.sync
0 commit comments