-
Notifications
You must be signed in to change notification settings - Fork 41
Verifiers are getting hard to sync up #42
Description
Recently, I saw many verifiers got dropped because they lost sync and never get back to a normal state again (despite the owners trying to reboot the machine, spin up new VPS, pray...). After digging for a while, I found out that the reason those verifiers kept losing synced state is because of lack of block vote, which we can increase the speed of fetching here:
https://github.com/n-y-z-o/nyzoVerifier/blob/master/src/main/java/co/nyzo/verifier/Verifier.java#L526-L528
Those time numbers are not suitable for the current mesh size anymore.
This would be a trade-off between performance and stability but I guess we have to choose stability. Currently, I'm using these numbers and it works fine (1/4 of original numbers). CPU usage got spike a little bit after starting nyzo service (under 20 sec).
frozenEdge.getVerificationTimestamp() < System.currentTimeMillis() - 7500L &&
lastVoteRequestTimestamp < System.currentTimeMillis() - 1000L
tunable params maybe nice to have.