Skip to content

Commit

Permalink
refactor(ARCO-312): Ensure ordered processing of initial blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim committed Jan 15, 2025
1 parent 3b6c60d commit 670ca36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func setupSut() {

if info.Blocks < minNumbeOfBlocks {
// generate blocks in part to ensure blocktx is able to process all blocks
const blockBatch = 20 // should be less or equal n*10 where n is number of blocktx instances
const blockBatch = 1 // should be less or equal n*10 where n is number of blocktx instances

for {
_, err = bitcoind.Generate(blockBatch)
Expand All @@ -59,7 +59,7 @@ func setupSut() {
}

// give time to send all INV messages
time.Sleep(5 * time.Second)
time.Sleep(100 * time.Millisecond)

info, err = bitcoind.GetInfo()
if err != nil {
Expand All @@ -72,6 +72,6 @@ func setupSut() {
}
}

time.Sleep(5 * time.Second) // wait for fillGaps to fill eventual gaps
//time.Sleep(5 * time.Second) // wait for fillGaps to fill eventual gaps
}
}

0 comments on commit 670ca36

Please sign in to comment.