TARAXA
taraxa::DbStorage Member List

This is the complete list of members for taraxa::DbStorage, including all inherited members.

addDagBlockPeriodToBatch(blk_hash_t const &hash, PbftPeriod period, uint32_t position, Batch &write_batch)taraxa::DbStorage
addPbftBlockPeriodToBatch(PbftPeriod period, taraxa::blk_hash_t const &pbft_block_hash, Batch &write_batch)taraxa::DbStorage
addPbftHeadToBatch(taraxa::blk_hash_t const &head_hash, std::string const &head_str, Batch &write_batch)taraxa::DbStorage
addPbftMgrFieldToBatch(PbftMgrField field, uint32_t value, Batch &write_batch)taraxa::DbStorage
addPbftMgrStatusToBatch(PbftMgrStatus field, bool const &value, Batch &write_batch)taraxa::DbStorage
addPeriodSystemTransactions(Batch &write_batch, SharedTransactions trxs, PbftPeriod period)taraxa::DbStorage
addProposalPeriodDagLevelsMapToBatch(uint64_t level, PbftPeriod period, Batch &write_batch)taraxa::DbStorage
addStatusFieldToBatch(StatusDbField const &field, uint64_t value, Batch &write_batch)taraxa::DbStorage
addSystemTransactionToBatch(Batch &write_batch, SharedTransaction trx)taraxa::DbStorage
addTransactionLocationToBatch(Batch &write_batch, trx_hash_t const &trx, PbftPeriod period, uint32_t position, bool is_system=false)taraxa::DbStorage
addTransactionToBatch(Transaction const &trx, Batch &write_batch)taraxa::DbStorage
asBytes(string const &b)taraxa::DbStorageinlinestatic
checkStatus(rocksdb::Status const &status)taraxa::DbStoragestatic
clearOwnVerifiedVotes(Batch &write_batch, const std::vector< std::shared_ptr< PbftVote >> &own_verified_votes)taraxa::DbStorage
clearPeriodDataHistory(PbftPeriod period, uint64_t dag_level_to_keep)taraxa::DbStorage
commitWriteBatch(Batch &write_batch, rocksdb::WriteOptions const &opts)taraxa::DbStorage
commitWriteBatch(Batch &write_batch)taraxa::DbStorageinline
compactColumn(Column const &column)taraxa::DbStorageinline
copyColumn(rocksdb::ColumnFamilyHandle *orig_column, const std::string &new_col_name, bool move_data=false)taraxa::DbStorage
createSnapshot(PbftPeriod period)taraxa::DbStorage
createWriteBatch()taraxa::DbStoragestatic
dag_blocks_count_taraxa::DbStorageprivate
dag_blocks_mutex_taraxa::DbStorageprivate
dag_edge_count_taraxa::DbStorageprivate
dagBlockInDb(blk_hash_t const &hash)taraxa::DbStorage
db_taraxa::DbStorageprivate
db_path_taraxa::DbStorageprivate
DbStorage(fs::path const &base_path, uint32_t db_snapshot_each_n_pbft_block=0, uint32_t max_open_files=0, uint32_t db_max_snapshots=0, PbftPeriod db_revert_to_period=0, addr_t node_addr=addr_t(), bool rebuild=false)taraxa::DbStorageexplicit
DbStorage(const DbStorage &)=deletetaraxa::DbStorage
DbStorage(DbStorage &&)=deletetaraxa::DbStorage
dbStoragePath() consttaraxa::DbStorageinline
deleteColumnData(const Column &c)taraxa::DbStorage
deleteSnapshot(PbftPeriod period)taraxa::DbStorage
deleteTmpDirectories(const std::string &path) consttaraxa::DbStorage
disableSnapshots()taraxa::DbStorage
enableSnapshots()taraxa::DbStorage
exist(K const &key, Column const &column)taraxa::DbStorageinline
forEach(Column const &col, OnEntry const &f)taraxa::DbStorage
getAllNonfinalizedTransactions()taraxa::DbStorage
getAllTransactionPeriod()taraxa::DbStorage
getAllTwoTPlusOneVotes()taraxa::DbStorage
getBlocksByLevel(level_t level)taraxa::DbStorage
getCertVotedBlockInRound() consttaraxa::DbStorage
getColumnIterator(const Column &c)taraxa::DbStorage
getColumnIterator(rocksdb::ColumnFamilyHandle *c)taraxa::DbStorage
getCurrentPillarBlockData() consttaraxa::DbStorage
getDagBlock(blk_hash_t const &hash)taraxa::DbStorage
getDagBlockPeriod(blk_hash_t const &hash)taraxa::DbStorage
getDagBlocksAtLevel(level_t level, int number_of_levels)taraxa::DbStorage
getDagBlocksCount() consttaraxa::DbStorageinline
getDagEdgeCount() consttaraxa::DbStorageinline
getFinalizedDagBlockByPeriod(PbftPeriod period)taraxa::DbStorage
getFinalizedDagBlockHashesByPeriod(PbftPeriod period)taraxa::DbStorage
getFinalizedTransactions(std::vector< trx_hash_t > const &trx_hashes) consttaraxa::DbStorage
getGenesisHash()taraxa::DbStorage
getLastBlocksLevel() consttaraxa::DbStorage
getLastPbftBlockHashAndFinalizedDagBlockByPeriod(PbftPeriod period)taraxa::DbStorage
getLastSortitionParams(size_t count)taraxa::DbStorage
getLatestPillarBlock() consttaraxa::DbStorage
getMajorVersion() consttaraxa::DbStorage
getNonfinalizedDagBlocks()taraxa::DbStorage
getNumBlockExecuted()taraxa::DbStorageinline
getNumTransactionExecuted()taraxa::DbStorageinline
getNumTransactionInDag()taraxa::DbStorageinline
getOwnPillarBlockVote() consttaraxa::DbStorage
getOwnVerifiedVotes()taraxa::DbStorage
getParamsChangeForPeriod(PbftPeriod period)taraxa::DbStorage
getPbftBlock(PbftPeriod period) consttaraxa::DbStorage
getPbftBlock(blk_hash_t const &hash)taraxa::DbStorage
getPbftHead(blk_hash_t const &hash)taraxa::DbStorage
getPbftMgrField(PbftMgrField field)taraxa::DbStorage
getPbftMgrStatus(PbftMgrStatus field)taraxa::DbStorage
getPeriodBlockHash(PbftPeriod period) consttaraxa::DbStorage
getPeriodCertVotes(PbftPeriod period) consttaraxa::DbStorage
getPeriodDataRaw(PbftPeriod period) consttaraxa::DbStorage
getPeriodFromPbftHash(taraxa::blk_hash_t const &pbft_block_hash)taraxa::DbStorage
getPeriodPillarVotes(PbftPeriod period) consttaraxa::DbStorage
getPeriodSystemTransactions(PbftPeriod period) consttaraxa::DbStorage
getPeriodSystemTransactionsHashes(PbftPeriod period) consttaraxa::DbStorage
getPeriodTransactions(PbftPeriod period) consttaraxa::DbStorage
getPillarBlock(PbftPeriod period) consttaraxa::DbStorage
getProposalPeriodForDagLevel(uint64_t level)taraxa::DbStorage
getProposedPbftBlocks()taraxa::DbStorage
getRewardVotes()taraxa::DbStorage
getStatusField(StatusDbField const &field)taraxa::DbStorage
getSystemTransaction(const trx_hash_t &hash) consttaraxa::DbStorage
getTransaction(trx_hash_t const &hash)taraxa::DbStorage
getTransactionCount(PbftPeriod period) consttaraxa::DbStorage
getTransactionLocation(trx_hash_t const &hash) consttaraxa::DbStorage
handle(Column const &col) consttaraxa::DbStorageinline
handles_taraxa::DbStorageprivate
hasMajorVersionChanged()taraxa::DbStorageinline
hasMinorVersionChanged()taraxa::DbStorageinline
insert(rocksdb::ColumnFamilyHandle *col, const K &k, const V &v)taraxa::DbStorageinline
insert(Column const &col, K const &k, V const &v)taraxa::DbStorageinline
insert(Batch &batch, Column const &col, K const &k, V const &v)taraxa::DbStorageinline
insert(Batch &batch, rocksdb::ColumnFamilyHandle *col, K const &k, V const &v)taraxa::DbStorageinline
kDbDirtaraxa::DbStorageprivate
kDbSnapshotsEachNblocktaraxa::DbStorageprivate
kDbSnapshotsMaxCounttaraxa::DbStorageprivate
kMajorVersion_taraxa::DbStorageprivate
kStateDbDirtaraxa::DbStorageprivate
loadSnapshots()taraxa::DbStorage
lookup(K const &key, Column const &column) consttaraxa::DbStorageinline
lookup_int(K const &key, Column const &column) -> std::enable_if_t< std::is_integral_v< Int >, std::optional< Int >>taraxa::DbStorageinline
major_version_changed_taraxa::DbStorageprivate
make_slice(T const *begin, size_t size)taraxa::DbStorageinlinestatic
minor_version_changed_taraxa::DbStorageprivate
operator=(const DbStorage &)=deletetaraxa::DbStorage
operator=(DbStorage &&)=deletetaraxa::DbStorage
path() consttaraxa::DbStorageinline
path_taraxa::DbStorageprivate
pbftBlockInDb(blk_hash_t const &hash)taraxa::DbStorage
read_options_taraxa::DbStorageprivate
rebuildColumns(const rocksdb::Options &options)taraxa::DbStorage
recoverToPeriod(PbftPeriod period)taraxa::DbStorage
remove(Column const &col, K const &k)taraxa::DbStorageinline
remove(Batch &batch, Column const &col, K const &k)taraxa::DbStorageinline
removeCertVotedBlockInRound(Batch &write_batch)taraxa::DbStorage
removeDagBlock(blk_hash_t const &hash)taraxa::DbStorage
removeDagBlockBatch(Batch &write_batch, blk_hash_t const &hash)taraxa::DbStorage
removeExtraRewardVotes(const std::vector< vote_hash_t > &votes, Batch &write_batch)taraxa::DbStorage
removeFilesWithPattern(const std::string &directory, const std::regex &pattern) consttaraxa::DbStorage
removeProposedPbftBlock(const blk_hash_t &block_hash, Batch &write_batch)taraxa::DbStorage
removeTempFiles() consttaraxa::DbStorage
removeTransactionToBatch(trx_hash_t const &trx, Batch &write_batch)taraxa::DbStorage
replaceColumn(const Column &to_be_replaced_col, std::unique_ptr< rocksdb::ColumnFamilyHandle > &&replacing_col)taraxa::DbStorage
replaceTwoTPlusOneVotes(TwoTPlusOneVotedBlockType type, const std::vector< std::shared_ptr< PbftVote >> &votes)taraxa::DbStorage
replaceTwoTPlusOneVotesToBatch(TwoTPlusOneVotedBlockType type, const std::vector< std::shared_ptr< PbftVote >> &votes, Batch &write_batch)taraxa::DbStorage
saveCertVotedBlockInRound(PbftRound round, const std::shared_ptr< PbftBlock > &block)taraxa::DbStorage
saveCurrentPillarBlockData(const pillar_chain::CurrentPillarBlockDataDb &current_pillar_block_data)taraxa::DbStorage
saveDagBlock(DagBlock const &blk, Batch *write_batch_p=nullptr)taraxa::DbStorage
saveExtraRewardVote(const std::shared_ptr< PbftVote > &vote)taraxa::DbStorage
saveOwnPillarBlockVote(const std::shared_ptr< PillarVote > &vote)taraxa::DbStorage
saveOwnVerifiedVote(const std::shared_ptr< PbftVote > &vote)taraxa::DbStorage
savePbftHead(blk_hash_t const &hash, string const &pbft_chain_head_str)taraxa::DbStorage
savePbftMgrField(PbftMgrField field, uint32_t value)taraxa::DbStorage
savePbftMgrStatus(PbftMgrStatus field, bool const &value)taraxa::DbStorage
savePeriodData(const PeriodData &period_data, Batch &write_batch)taraxa::DbStorage
savePillarBlock(const std::shared_ptr< pillar_chain::PillarBlock > &pillar_block)taraxa::DbStorage
saveProposalPeriodDagLevelsMap(uint64_t level, PbftPeriod period)taraxa::DbStorage
saveProposedPbftBlock(const std::shared_ptr< PbftBlock > &block)taraxa::DbStorage
saveSortitionParamsChange(PbftPeriod period, const SortitionParamsChange &params, Batch &batch)taraxa::DbStorage
saveStatusField(StatusDbField const &field, uint64_t value)taraxa::DbStorage
setGenesisHash(const h256 &genesis_hash)taraxa::DbStorage
snapshots_taraxa::DbStorageprivate
snapshots_enabled_taraxa::DbStorageprivate
state_db_path_taraxa::DbStorageprivate
stateDbStoragePath() consttaraxa::DbStorageinline
toSlice(dev::bytesConstRef const &b)taraxa::DbStorageinlinestatic
toSlice(dev::FixedHash< N > const &h)taraxa::DbStorageinlinestatic
toSlice(dev::bytes const &b)taraxa::DbStorageinlinestatic
toSlice(N const &n) -> std::enable_if_t< std::is_integral_v< N >||std::is_enum_v< N >, Slice >taraxa::DbStorageinlinestatic
toSlice(string const &str)taraxa::DbStorageinlinestatic
toSlice(Slice const &s)taraxa::DbStorageinlinestatic
toSlices(std::vector< T > const &keys)taraxa::DbStorageinlinestatic
toSlices(std::vector< Slice > const &ss)taraxa::DbStorageinlinestatic
transactionFinalized(trx_hash_t const &hash)taraxa::DbStorage
transactionInDb(trx_hash_t const &hash)taraxa::DbStorage
transactionsFinalized(std::vector< trx_hash_t > const &trx_hashes)taraxa::DbStorage
transactionsInDb(std::vector< trx_hash_t > const &trx_hashes)taraxa::DbStorage
updateDagBlockCounters(std::vector< DagBlock > blks)taraxa::DbStorage
updateDbVersions()taraxa::DbStorage
write_options_taraxa::DbStorageprivate
~DbStorage()taraxa::DbStorage