xelis-blockchain icon indicating copy to clipboard operation
xelis-blockchain copied to clipboard

Peerlist possible corruption

Open duggavo opened this issue 2 months ago • 1 comments

Xelis-daemon's peerlist is only saved on graceful shutdown.

This can cause loss of peers data, if the daemon is shut down abruptly, and significant load to seed nodes.

Consider saving the peerlist more frequently during the normal operation of daemon.

Perhaps moving peerlist to a safer, faster database than full JSON rewrites, which can cause corruption.

duggavo avatar Apr 20 '24 15:04 duggavo

Agree, this has been to rewritten, with high count of peers, this can use a lot of memory after some point.

Slixe avatar Apr 21 '24 14:04 Slixe