// Copyright (c) 2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef Agrarian_CSPORKDB_H #define Agrarian_CSPORKDB_H #include #include "leveldbwrapper.h" #include "spork.h" class CSporkDB : public CLevelDBWrapper { public: CSporkDB(size_t nCacheSize, bool fMemory = false, bool fWipe = false); private: CSporkDB(const CSporkDB&); void operator=(const CSporkDB&); public: bool WriteSpork(const int nSporkId, const CSporkMessage& spork); bool ReadSpork(const int nSporkId, CSporkMessage& spork); bool SporkExists(const int nSporkId); }; #endif //Agrarian_CSPORKDB_H