Open decanus opened 5 years ago
@decanus what about payloads, do they need to be persisted as well?
@cammellos, no. Only syncstate, message store and epoch.
@decanus what about peers? is a client expected to re-add peers each time it starts up?
@cammellos yeah we should also persist those. Should I create something like a peerbook that would allow us to easier manage peers externally from the node/
@decanus no worries, I have already added something on those lines here https://github.com/vacp2p/mvds/tree/bugfix/acks
To ensure that the sync state does not get cleared every time we stop and restart the client, we need to store it in SQLLite rather than in memory.
NOTE: Same goes for
MessageStore
.