sgns::ipfs_lite_store¶
#include <ipfs_lite_store.hpp>
Inherits from block_store_partial< IPFS_val, ipfs_lite_store >
Public Functions¶
| Name | |
|---|---|
| ipfs_lite_store() | |
| bool | exists(sgns::transaction const & transaction_a, tables table_a, ipfs_val const & key_a) const |
| int | get(sgns::transaction const & transaction_a, tables table_a, ipfs_val const & key, ipfs_val const & value_a) const |
| int | put(sgns::write_transaction const & transaction_a, tables table_a, ipfs_val const & key_a, const ipfs_val & value_a) const |
| int | del(sgns::write_transaction const & transaction_a, tables table_a, ipfs_val const & key_a) const |
| int | drop(sgns::write_transaction const & transaction_a, tables table_a) override |
| sgns::write_transaction | tx_begin_write(std::vector< sgns::tables > const & tables_requiring_lock ={}, std::vector< sgns::tables > const & tables_no_lock ={}) override |
| sgns::read_transaction | tx_begin_read() override |
| std::string | vendor_get() const override |
| bool | block_info_get(sgns::transaction const & transaction_a, sgns::block_hash const & hash_a, sgns::block_info & block_info_a) const override |
| void | version_put(sgns::write_transaction const & transaction_a, int version_a) override |
| void | serialize_mdb_tracker(boost::property_tree::ptree & json, std::chrono::milliseconds min_read_time, std::chrono::milliseconds min_write_time) override |
| std::shared_ptr< sgns::block > | block_get_v14(sgns::transaction const & transaction_a, sgns::block_hash const & hash_a, sgns::block_sideband_v14 * sideband_a =nullptr, bool * is_state_v1 =nullptr) const override |
| bool | copy_db(boost::filesystem::path const & destination_file) override |
| void | rebuild_db(sgns::write_transaction const & transaction_a) override |
| bool | init_error() const override |
| size_t | count(sgns::transaction const & transaction_a, tables table_a) const override |
| bool | not_found(int status) const override |
| bool | success(int status) const override |
| int | status_code_not_found() const override |
Public Attributes¶
Public Functions Documentation¶
function ipfs_lite_store¶
function exists¶
bool exists(
sgns::transaction const & transaction_a,
tables table_a,
ipfs_val const & key_a
) const
function get¶
int get(
sgns::transaction const & transaction_a,
tables table_a,
ipfs_val const & key,
ipfs_val const & value_a
) const
function put¶
int put(
sgns::write_transaction const & transaction_a,
tables table_a,
ipfs_val const & key_a,
const ipfs_val & value_a
) const
function del¶
int del(
sgns::write_transaction const & transaction_a,
tables table_a,
ipfs_val const & key_a
) const
function drop¶
function tx_begin_write¶
sgns::write_transaction tx_begin_write(
std::vector< sgns::tables > const & tables_requiring_lock ={},
std::vector< sgns::tables > const & tables_no_lock ={}
) override
function tx_begin_read¶
function vendor_get¶
function block_info_get¶
bool block_info_get(
sgns::transaction const & transaction_a,
sgns::block_hash const & hash_a,
sgns::block_info & block_info_a
) const override
function version_put¶
function serialize_mdb_tracker¶
void serialize_mdb_tracker(
boost::property_tree::ptree & json,
std::chrono::milliseconds min_read_time,
std::chrono::milliseconds min_write_time
) override
function block_get_v14¶
std::shared_ptr< sgns::block > block_get_v14(
sgns::transaction const & transaction_a,
sgns::block_hash const & hash_a,
sgns::block_sideband_v14 * sideband_a =nullptr,
bool * is_state_v1 =nullptr
) const override
function copy_db¶
function rebuild_db¶
function init_error¶
function count¶
function not_found¶
function success¶
function status_code_not_found¶
Public Attributes Documentation¶
variable frontiers¶
Maps head block to owning account sgns::block_hash -> sgns::account
variable accounts_v0¶
Maps account v1 to account information, head, rep, open, balance, timestamp and block count. (Removed) sgns::account -> sgns::block_hash, sgns::block_hash, sgns::block_hash, sgns::amount, uint64_t, uint64_t
variable accounts_v1¶
Maps account v0 to account information, head, rep, open, balance, timestamp and block count. (Removed) sgns::account -> sgns::block_hash, sgns::block_hash, sgns::block_hash, sgns::amount, uint64_t, uint64_t
variable accounts¶
Maps account v0 to account information, head, rep, open, balance, timestamp, block count and epoch. (Removed) sgns::account -> sgns::block_hash, sgns::block_hash, sgns::block_hash, sgns::amount, uint64_t, uint64_t, sgns::epoch
variable send_blocks¶
Maps block hash to send block. sgns::block_hash -> sgns::send_block
variable receive_blocks¶
Maps block hash to receive block. sgns::block_hash -> sgns::receive_block
variable open_blocks¶
Maps block hash to open block. sgns::block_hash -> sgns::open_block
variable change_blocks¶
Maps block hash to change block. sgns::block_hash -> sgns::change_block
variable state_blocks_v0¶
Maps block hash to v0 state block. (Removed) sgns::block_hash -> sgns::state_block
variable state_blocks_v1¶
Maps block hash to v1 state block. (Removed) sgns::block_hash -> sgns::state_block
variable state_blocks¶
Maps block hash to state block. sgns::block_hash -> sgns::state_block
variable pending_v0¶
Maps min_version 0 (destination account, pending block) to (source account, amount). (Removed) sgns::account, sgns::block_hash -> sgns::account, sgns::amount
variable pending_v1¶
Maps min_version 1 (destination account, pending block) to (source account, amount). (Removed) sgns::account, sgns::block_hash -> sgns::account, sgns::amount
variable pending¶
Maps (destination account, pending block) to (source account, amount, version). (Removed) sgns::account, sgns::block_hash -> sgns::account, sgns::amount, sgns::epoch
variable blocks_info¶
Maps block hash to account and balance. (Removed) block_hash -> sgns::account, sgns::amount
variable representation¶
Representative weights. (Removed) sgns::account -> sgns::uint128_t
variable unchecked¶
Unchecked bootstrap blocks info. sgns::block_hash -> sgns::unchecked_info
variable vote¶
Highest vote observed for account. sgns::account -> uint64_t
variable online_weight¶
Samples of online vote weight uint64_t -> sgns::amount
variable meta¶
Meta information about block store, such as versions. sgns::uint256_union (arbitrary key) -> blob
variable peers¶
variable confirmation_height¶
Updated on 2026-03-04 at 13:10:43 -0800