pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
63 stars 33 forks source link

[Persistence] Adds Save and Load functionality to TreeStore #897

Closed dylanlott closed 2 months ago

dylanlott commented 1 year ago

Description

Adds save and load functionality to the TreeStore.

This PR makes the TreeStore an Interruptable module. This is necessary because the Persistence module needs to be able to tell the TreeStore to relinquish its connection to the nodeStores which are backed by BadgerDB.

Issue

Related to #568

Type of change

Please mark the relevant option(s):

List of changes

Testing

Required Checklist

If Applicable Checklist

Olshansk commented 1 year ago

@dylanlott Can you "re-request" a review when its ready and I'll reply to all the comments/questions then?

dylanlott commented 1 year ago

@dylanlott Can you "re-request" a review when its ready and I'll reply to all the comments/questions then?

You beat me to it. I just finished up addressing your feedback, it's ready for re-review 👍