Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <storageresults.h>
Public Member Functions | |
StorageResults (std::string const &_path) | |
~StorageResults () | |
void | addResult (dev::h256 hashTx, std::vector< TransactionReceiptInfo > &result) |
void | deleteResults (std::vector< CTransactionRef > const &txs) |
std::vector< TransactionReceiptInfo > | getResult (dev::h256 const &hashTx) |
void | commitResults () |
void | clearCacheResult () |
void | wipeResults () |
Private Member Functions | |
bool | readResult (dev::h256 const &_key, std::vector< TransactionReceiptInfo > &_result) |
logEntriesSerializ | logEntriesSerialization (dev::eth::LogEntries const &_logs) |
dev::eth::LogEntries | logEntriesDeserialize (logEntriesSerializ const &_logs) |
Private Attributes | |
std::string | path |
leveldb::DB * | db |
leveldb::Options | options |
std::unordered_map< dev::h256, std::vector< TransactionReceiptInfo > > | m_cache_result |
Definition at line 37 of file storageresults.h.
StorageResults::StorageResults | ( | std::string const & | _path | ) |
StorageResults::~StorageResults | ( | ) |
Definition at line 12 of file storageresults.cpp.
void StorageResults::addResult | ( | dev::h256 | hashTx, |
std::vector< TransactionReceiptInfo > & | result | ||
) |
void StorageResults::clearCacheResult | ( | ) |
void StorageResults::commitResults | ( | ) |
Definition at line 60 of file storageresults.cpp.
void StorageResults::deleteResults | ( | std::vector< CTransactionRef > const & | txs | ) |
Definition at line 34 of file storageresults.cpp.
std::vector< TransactionReceiptInfo > StorageResults::getResult | ( | dev::h256 const & | hashTx | ) |
Definition at line 47 of file storageresults.cpp.
|
private |
|
private |
|
private |
Definition at line 101 of file storageresults.cpp.
void StorageResults::wipeResults | ( | ) |
|
private |
Definition at line 64 of file storageresults.h.
|
private |
Definition at line 68 of file storageresults.h.
|
private |
Definition at line 66 of file storageresults.h.
|
private |
Definition at line 62 of file storageresults.h.