Skip to content

Commit f2c0d47

Browse files
committed
Update blox.go
1 parent 74a6ec2 commit f2c0d47

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

blox/blox.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,19 @@ func (p *Blox) Start(ctx context.Context) error {
445445
found := false
446446
foundChain := ""
447447

448-
// Initial delay in seconds
448+
// Initial delay before first attempt to allow network to come up
449+
log.Infow("Waiting 30 seconds before pool discovery to allow network to stabilize")
450+
time.Sleep(30 * time.Second)
451+
452+
// Delay between retries
449453
delay := time.Duration(60) * time.Second
450454
// Maximum number of retries
451455
maxRetries := 5
452456
// Attempt counter
453457
attempt := 0
454458

455-
// List of chains to check (skale first as default)
456-
chainList := []string{"skale", "base"}
459+
// List of chains to check (base first as most pools are there)
460+
chainList := []string{"base", "skale"}
457461

458462
for {
459463
attempt++

0 commit comments

Comments
 (0)