mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 00:43:06 +00:00
fix: ci and nonceManager
This commit is contained in:
parent
3b2413951b
commit
dfc4256163
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
@ -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: " &
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user