fix corrupt saving of peers to persistent storage

persistent peer storage is actually broken before this commit, which
is what is preventing peer discovery from working right after a client
restart

peer discovery should now occur immediately after starting the client