ledger-core
Static Public Member Functions | List of all members
ledger::core::BlockDatabaseHelper Class Reference

Static Public Member Functions

static std::string createBlockUid (const Block &block)
 
static std::string createBlockUid (const std::string &blockhash, const std::string &currencyName)
 
static bool putBlock (soci::session &sql, const Block &block)
 
static bool blockExists (soci::session &sql, const std::string &blockHash, const std::string &currencyName)
 
static Option< api::BlockgetLastBlock (soci::session &sql, const std::string &currencyName)
 
static Option< api::BlockgetPreviousBlockInDatabase (soci::session &sql, const std::string &currencyName, int64_t blockHeight)
 
static Option< api::BlockgetPreviousBlockInDatabase (soci::session &sql, const std::string &currencyName, std::chrono::system_clock::time_point date)
 

The documentation for this class was generated from the following files: