status-im / status-console-client

Status messaging console user interface
Mozilla Public License 2.0
10 stars 2 forks source link

MVDS Sync State SQLLite #119

Open decanus opened 5 years ago

decanus commented 5 years ago

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.

cammellos commented 5 years ago

@decanus what about payloads, do they need to be persisted as well?

decanus commented 5 years ago

@cammellos, no. Only syncstate, message store and epoch.

cammellos commented 5 years ago

@decanus what about peers? is a client expected to re-add peers each time it starts up?

decanus commented 5 years ago

@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/

cammellos commented 5 years ago

@decanus no worries, I have already added something on those lines here https://github.com/vacp2p/mvds/tree/bugfix/acks