elsehow / hyperchat2

p2p messageboard around a hyperlog
2 stars 1 forks source link

messages should be saved in leveldb #5

Closed elsehow closed 8 years ago

elsehow commented 8 years ago

right now, messages do not persist in level db. really, they should stay there. if we get a new message, we can see if we already have it cached.

to make sure there is no funny business with people injecting messages into the level db, see #4

elsehow commented 8 years ago

actually, we are already passing swarmlog a leveldb instance.

we should probably be passing it a memdb instance.

then, can we store that log, and other app state, in some persistent storage, as mentioned in #3 ?

elsehow commented 8 years ago

messages are saved in leveldb, which does allow them to persist (do not need to be re-downloaded every time), if i am not mistaken.