Skip to content

Commit 6a30763

Browse files
committed
[ETCM-27] Increase number of blocks in the queue
1 parent bbf2fcd commit 6a30763

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/ets/scala/io/iohk/ethereum/ets/blockchain/ScenarioSetup.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ abstract class ScenarioSetup(_vm: VMImpl, scenario: BlockchainScenario) {
6060
val ledger =
6161
new LedgerImpl(
6262
blockchain,
63-
new BlockQueue(blockchain, 10, 10), blockchainConfig, consensus, ScenarioSetup.testContext)
63+
new BlockQueue(blockchain, 50, 50), blockchainConfig, consensus, ScenarioSetup.testContext)
6464

6565
def loadGenesis(): Block = {
6666
val genesisBlock = scenario.genesisRLP match {

src/main/resources/application.conf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,15 +366,17 @@ mantis {
366366
# depth in ethereum (https://www.reddit.com/r/ethereum/comments/4eplsv/how_many_confirms_is_considered_safe_in_ethereum/)
367367
branch-resolution-request-size = 12
368368

369+
# TODO investigate proper value to handle ETC reorgs correctly
369370
# threshold for storing non-main-chain blocks in queue.
370371
# if: current_best_block_number - block_number > max-queued-block-number-behind
371372
# then: the block will not be queued (such already queued blocks will be removed)
372-
max-queued-block-number-behind = 10
373+
max-queued-block-number-behind = 100
373374

375+
# TODO investigate proper value to handle ETC reorgs correctly
374376
# threshold for storing non-main-chain blocks in queue.
375377
# if: block_number - current_best_block_number > max-queued-block-number-ahead
376378
# then: the block will not be queued (such already queued blocks will be removed)
377-
max-queued-block-number-ahead = 10
379+
max-queued-block-number-ahead = 100
378380

379381
# Maximum number of blocks, after which block hash from NewBlockHashes packet is considered ancient
380382
# and peer sending it is blacklisted

0 commit comments

Comments
 (0)