Wire Sysio Wire Sysion 1.0.0
|
#include <account_query_db.hpp>
Classes | |
struct | get_accounts_by_authorizers_params |
struct | get_accounts_by_authorizers_result |
Public Member Functions | |
account_query_db (const class sysio::chain::controller &chain) | |
~account_query_db () | |
account_query_db (account_query_db &&) | |
account_query_db & | operator= (account_query_db &&) |
void | cache_transaction_trace (const chain::transaction_trace_ptr &trace) |
void | commit_block (const chain::block_state_ptr &block) |
get_accounts_by_authorizers_result | get_accounts_by_authorizers (const get_accounts_by_authorizers_params &args) const |
This class manages the ephemeral indices and data that provide the get_accounts_by_authorizers
RPC call There is no persistence and the indices/caches are recreated when the class is instantiated based on the current state of the chain.
Definition at line 12 of file account_query_db.hpp.
sysio::chain_apis::account_query_db::account_query_db | ( | const class sysio::chain::controller & | chain | ) |
Instantiate a new account query DB from the given chain controller The caller is expected to manage lifetimes such that this controller reference does not go stale for the life of the account query DB
chain | - controller to read data from |
|
default |
sysio::chain_apis::account_query_db::account_query_db | ( | account_query_db && | ) |
Allow moving the account query DB (including by assignment)
void sysio::chain_apis::account_query_db::cache_transaction_trace | ( | const chain::transaction_trace_ptr & | trace | ) |
Add a transaction trace to the account query DB that has been applied to the contoller even though it may not yet be committed to by a block.
trace |
Definition at line 517 of file account_query_db.cpp.
void sysio::chain_apis::account_query_db::commit_block | ( | const chain::block_state_ptr & | block | ) |
Add a block to the account query DB, committing all the cached traces it represents and dumping any uncommitted traces.
block |
Definition at line 523 of file account_query_db.cpp.
account_query_db::get_accounts_by_authorizers_result sysio::chain_apis::account_query_db::get_accounts_by_authorizers | ( | const get_accounts_by_authorizers_params & | args | ) | const |
Given a set of account names and public keys, find all account permission authorities that are, in part or whole, satisfiable.
args |
Definition at line 529 of file account_query_db.cpp.
|
default |