Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peerlist possible corruption #28

Open
duggavo opened this issue Apr 20, 2024 · 1 comment
Open

Peerlist possible corruption #28

duggavo opened this issue Apr 20, 2024 · 1 comment

Comments

@duggavo
Copy link

duggavo commented Apr 20, 2024

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.

@Slixe
Copy link
Member

Slixe commented Apr 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants