Skip to content

Commit

Permalink
Adds two traces and bumps nim-ethers (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbierens authored Mar 29, 2024
1 parent 8378ac4 commit c97f973
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions codex/codex.nim
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ type

proc waitForSync(provider: Provider): Future[void] {.async.} =
var sleepTime = 1
trace "Checking sync state of Ethereum provider..."
while await provider.isSyncing:
notice "Waiting for Ethereum provider to sync..."
await sleepAsync(sleepTime.seconds)
if sleepTime < 10:
inc sleepTime
trace "Ethereum provider is synced."

proc bootstrapInteractions(
s: CodexServer): Future[void] {.async.} =
Expand Down
2 changes: 1 addition & 1 deletion vendor/nim-ethers

0 comments on commit c97f973

Please sign in to comment.