Skip to content

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

Name
ipfs_dbi frontiers
ipfs_dbi accounts_v0
ipfs_dbi accounts_v1
ipfs_dbi accounts
ipfs_dbi send_blocks
ipfs_dbi receive_blocks
ipfs_dbi open_blocks
ipfs_dbi change_blocks
ipfs_dbi state_blocks_v0
ipfs_dbi state_blocks_v1
ipfs_dbi state_blocks
ipfs_dbi pending_v0
ipfs_dbi pending_v1
ipfs_dbi pending
ipfs_dbi blocks_info
ipfs_dbi representation
ipfs_dbi unchecked
ipfs_dbi vote
ipfs_dbi online_weight
ipfs_dbi meta
ipfs_dbi peers
ipfs_dbi confirmation_height

Public Functions Documentation

function ipfs_lite_store

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

int drop(
    sgns::write_transaction const & transaction_a,
    tables table_a
) override

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

sgns::read_transaction tx_begin_read() override

function vendor_get

std::string vendor_get() const override

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

void version_put(
    sgns::write_transaction const & transaction_a,
    int version_a
) override

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

bool copy_db(
    boost::filesystem::path const & destination_file
) override

function rebuild_db

void rebuild_db(
    sgns::write_transaction const & transaction_a
) override

function init_error

bool init_error() const override

function count

size_t count(
    sgns::transaction const & transaction_a,
    tables table_a
) const override

function not_found

bool not_found(
    int status
) const override

function success

bool success(
    int status
) const override

function status_code_not_found

int status_code_not_found() const override

Public Attributes Documentation

variable frontiers

ipfs_dbi frontiers { 0 };

Maps head block to owning account sgns::block_hash -> sgns::account

variable accounts_v0

ipfs_dbi accounts_v0 { 0 };

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

ipfs_dbi accounts_v1 { 0 };

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

ipfs_dbi accounts { 0 };

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

ipfs_dbi send_blocks { 0 };

Maps block hash to send block. sgns::block_hash -> sgns::send_block

variable receive_blocks

ipfs_dbi receive_blocks { 0 };

Maps block hash to receive block. sgns::block_hash -> sgns::receive_block

variable open_blocks

ipfs_dbi open_blocks { 0 };

Maps block hash to open block. sgns::block_hash -> sgns::open_block

variable change_blocks

ipfs_dbi change_blocks { 0 };

Maps block hash to change block. sgns::block_hash -> sgns::change_block

variable state_blocks_v0

ipfs_dbi state_blocks_v0 { 0 };

Maps block hash to v0 state block. (Removed) sgns::block_hash -> sgns::state_block

variable state_blocks_v1

ipfs_dbi state_blocks_v1 { 0 };

Maps block hash to v1 state block. (Removed) sgns::block_hash -> sgns::state_block

variable state_blocks

ipfs_dbi state_blocks { 0 };

Maps block hash to state block. sgns::block_hash -> sgns::state_block

variable pending_v0

ipfs_dbi pending_v0 { 0 };

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

ipfs_dbi pending_v1 { 0 };

Maps min_version 1 (destination account, pending block) to (source account, amount). (Removed) sgns::account, sgns::block_hash -> sgns::account, sgns::amount

variable pending

ipfs_dbi pending { 0 };

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

ipfs_dbi blocks_info { 0 };

Maps block hash to account and balance. (Removed) block_hash -> sgns::account, sgns::amount

variable representation

ipfs_dbi representation { 0 };

Representative weights. (Removed) sgns::account -> sgns::uint128_t

variable unchecked

ipfs_dbi unchecked { 0 };

Unchecked bootstrap blocks info. sgns::block_hash -> sgns::unchecked_info

variable vote

ipfs_dbi vote { 0 };

Highest vote observed for account. sgns::account -> uint64_t

variable online_weight

ipfs_dbi online_weight { 0 };

Samples of online vote weight uint64_t -> sgns::amount

variable meta

ipfs_dbi meta { 0 };

Meta information about block store, such as versions. sgns::uint256_union (arbitrary key) -> blob

variable peers

ipfs_dbi peers { 0 };

variable confirmation_height

ipfs_dbi confirmation_height { 0 };

Updated on 2026-03-04 at 13:10:43 -0800