This commit is contained in:
2022-02-03 23:45:47 -08:00
parent 42c2062cc4
commit 184ece190c
1438 changed files with 404064 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
// 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 <boost/filesystem/path.hpp>
#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