diff options
| author | Jim Posen <[email protected]> | 2018-05-15 17:52:09 -0700 |
|---|---|---|
| committer | Jim Posen <[email protected]> | 2018-06-04 19:22:20 -0700 |
| commit | 9b0ec1a7f9ffae816fd5ca32ff7e7559640b6f6d (patch) | |
| tree | 0de6ce97a2f073afd51dc86b7765da03ca86f1c1 /src | |
| parent | Merge #13191: Specialized double-SHA256 with 64 byte inputs with SSE4.1 and AVX2 (diff) | |
| download | discoin-9b0ec1a7f9ffae816fd5ca32ff7e7559640b6f6d.tar.xz discoin-9b0ec1a7f9ffae816fd5ca32ff7e7559640b6f6d.zip | |
db: Remove obsolete methods from CBlockTreeDB.
Diffstat (limited to 'src')
| -rw-r--r-- | src/txdb.cpp | 11 | ||||
| -rw-r--r-- | src/txdb.h | 2 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp index 333d3596c..90d937d4c 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -237,17 +237,6 @@ bool CBlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockF return WriteBatch(batch, true); } -bool CBlockTreeDB::ReadTxIndex(const uint256 &txid, CDiskTxPos &pos) { - return Read(std::make_pair(DB_TXINDEX, txid), pos); -} - -bool CBlockTreeDB::WriteTxIndex(const std::vector<std::pair<uint256, CDiskTxPos> >&vect) { - CDBBatch batch(*this); - for (std::vector<std::pair<uint256,CDiskTxPos> >::const_iterator it=vect.begin(); it!=vect.end(); it++) - batch.Write(std::make_pair(DB_TXINDEX, it->first), it->second); - return WriteBatch(batch); -} - bool CBlockTreeDB::WriteFlag(const std::string &name, bool fValue) { return Write(std::make_pair(DB_FLAG, name), fValue ? '1' : '0'); } diff --git a/src/txdb.h b/src/txdb.h index 4193f98de..3c509373f 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -118,8 +118,6 @@ public: bool ReadLastBlockFile(int &nFile); bool WriteReindexing(bool fReindexing); bool ReadReindexing(bool &fReindexing); - bool ReadTxIndex(const uint256 &txid, CDiskTxPos &pos); - bool WriteTxIndex(const std::vector<std::pair<uint256, CDiskTxPos> > &vect); bool WriteFlag(const std::string &name, bool fValue); bool ReadFlag(const std::string &name, bool &fValue); bool LoadBlockIndexGuts(const Consensus::Params& consensusParams, std::function<CBlockIndex*(const uint256&)> insertBlockIndex); |