fix: ci and nonceManager

This commit is contained in:
rymnc 2024-06-12 17:29:29 +05:30
parent 3b2413951b
commit dfc4256163
2 changed files with 4 additions and 3 deletions

View File

@ -118,7 +118,7 @@ jobs:
export MAKEFLAGS="-j1"
export NIMFLAGS="--colors:off -d:chronicles_colors:none"
make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled test testwakunode2>>>>>>> master
make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled test testwakunode2
build-docker-image:
needs: changes

View File

@ -45,12 +45,13 @@ proc getNonce*(n: NonceManager): NonceManagerResult[Nonce] =
if now - n.lastNonceTime >= n.epoch:
retNonce = 0
n.lastNonceTime = now
n.nextNonce = retNonce + 1
n.lastNonceTime = now
if retNonce >= n.nonceLimit:
return err(
NonceManagerError(
NonceManagerError(
kind: NonceLimitReached,
error:
"Nonce limit reached. Please wait for the next epoch. requested nonce: " &