Adds two traces and bumps nim-ethers (#761)

This commit is contained in:
Ben Bierens 2024-03-29 12:51:17 +01:00 committed by GitHub
parent 8378ac4dac
commit c97f973410
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -62,11 +62,13 @@ type
proc waitForSync(provider: Provider): Future[void] {.async.} = proc waitForSync(provider: Provider): Future[void] {.async.} =
var sleepTime = 1 var sleepTime = 1
trace "Checking sync state of Ethereum provider..."
while await provider.isSyncing: while await provider.isSyncing:
notice "Waiting for Ethereum provider to sync..." notice "Waiting for Ethereum provider to sync..."
await sleepAsync(sleepTime.seconds) await sleepAsync(sleepTime.seconds)
if sleepTime < 10: if sleepTime < 10:
inc sleepTime inc sleepTime
trace "Ethereum provider is synced."
proc bootstrapInteractions( proc bootstrapInteractions(
s: CodexServer): Future[void] {.async.} = s: CodexServer): Future[void] {.async.} =

2
vendor/nim-ethers vendored

@ -1 +1 @@
Subproject commit 43cef2f7caae3e81dad2b4d9084f4b7c1f3e0c21 Subproject commit 5b170adcb1ffb1dbb273d1b7679bf3d9a08adb76