Start to persist zindex stats to disk

This commit is contained in:
Duke Leto
2021-06-15 00:47:56 -04:00
parent d3f12a6b7f
commit 8c25b745b3
2 changed files with 102 additions and 0 deletions

View File

@@ -950,4 +950,14 @@ std::pair<std::map<CBlockIndex*, std::list<CTransaction>>, uint64_t> DrainRecent
void SetChainNotifiedSequence(uint64_t recentlyConflictedSequence);
bool ChainIsFullyNotified();
class CZindexDB
{
private:
boost::filesystem::path pathAddr;
public:
CZindexDB();
bool Write(const CZindexDB& addr);
bool Read(CZindexDB& addr);
};
#endif // HUSH_MAIN_H