|
| static bool | parse_db_sync_mode (std::string db_sync_mode) |
| |
| static std::string | get_default_db_path () |
| |
| static std::string | get_cache_filename (boost::filesystem::path filename) |
| |
| static int | compare_hash32 (const MDB_val *a, const MDB_val *b) |
| |
| int | compare_uint64 (const MDB_val *a, const MDB_val *b) |
| |
| static int | compare_double64 (const MDB_val *a, const MDB_val *b) |
| |
| static int | resize_env (const char *db_path) |
| |
| static void | init (std::string cache_filename) |
| |
| static void | close () |
| |
| static std::string | compress_ring (const std::vector< uint64_t > &ring, std::string s="") |
| |
| static std::string | compress_ring (uint64_t amount, const std::vector< uint64_t > &ring) |
| |
| static std::vector< uint64_t > | decompress_ring (const std::string &s) |
| |
| static bool | for_all_transactions (const std::string &filename, uint64_t &start_idx, uint64_t &n_txes, const std::function< bool(const cryptonote::transaction_prefix &)> &f) |
| |
| static uint64_t | find_first_diverging_transaction (const std::string &first_filename, const std::string &second_filename) |
| |
| static std::vector< uint64_t > | canonicalize (const std::vector< uint64_t > &v) |
| |
| static uint64_t | get_num_spent_outputs () |
| |
| static bool | add_spent_output (MDB_cursor *cur, const output_data &od) |
| |
| static bool | is_output_spent (MDB_cursor *cur, const output_data &od) |
| |
| static std::vector< output_data > | get_spent_outputs (MDB_txn *txn) |
| |
| static void | get_per_amount_outputs (MDB_txn *txn, uint64_t amount, uint64_t &total, uint64_t &spent) |
| |
| static void | inc_per_amount_outputs (MDB_txn *txn, uint64_t amount, uint64_t total, uint64_t spent) |
| |
| static uint64_t | get_processed_txidx (const std::string &name) |
| |
| static void | set_processed_txidx (MDB_txn *txn, const std::string &name, uint64_t height) |
| |
| static bool | get_relative_ring (MDB_txn *txn, const crypto::key_image &ki, std::vector< uint64_t > &ring) |
| |
| static void | set_relative_ring (MDB_txn *txn, const crypto::key_image &ki, const std::vector< uint64_t > &ring) |
| |
| static std::string | keep_under_511 (const std::string &s) |
| |
| static uint64_t | get_ring_instances (MDB_txn *txn, uint64_t amount, const std::vector< uint64_t > &ring) |
| |
| static uint64_t | get_ring_subset_instances (MDB_txn *txn, uint64_t amount, const std::vector< uint64_t > &ring) |
| |
| static uint64_t | inc_ring_instances (MDB_txn *txn, uint64_t amount, const std::vector< uint64_t > &ring) |
| |
| static std::vector< crypto::key_image > | get_key_images (MDB_txn *txn, const output_data &od) |
| |
| static void | add_key_image (MDB_txn *txn, const output_data &od, const crypto::key_image &ki) |
| |
| static bool | get_stat (MDB_txn *txn, const char *key, uint64_t &data) |
| |
| static void | set_stat (MDB_txn *txn, const char *key, uint64_t data) |
| |
| static void | inc_stat (MDB_txn *txn, const char *key) |
| |
| static void | open_db (const std::string &filename, MDB_env **env, MDB_txn **txn, MDB_cursor **cur, MDB_dbi *dbi) |
| |
| static void | close_db (MDB_env *env, MDB_txn *txn, MDB_cursor *cur, MDB_dbi dbi) |
| |
| static void | get_num_outputs (MDB_txn *txn, MDB_cursor *cur, MDB_dbi dbi, uint64_t &pre_rct, uint64_t &rct) |
| |
| static crypto::hash | get_genesis_block_hash (const std::string &filename) |
| |
| static std::vector< std::pair< uint64_t, uint64_t > > | load_outputs (const std::string &filename) |
| |
| static bool | export_spent_outputs (MDB_cursor *cur, const std::string &filename) |
| |
| int | main (int argc, char *argv[]) |
| |