|
Kagome
Polkadot Runtime Engine in C++17
|
#include <boost/throw_exception.hpp>#include <chrono>#include <fstream>#include <string_view>#include <thread>#include <boost/algorithm/string/predicate.hpp>#include <boost/di.hpp>#include <soralog/impl/configurator_from_yaml.hpp>#include "blockchain/block_storage_error.hpp"#include "blockchain/impl/block_header_repository_impl.hpp"#include "blockchain/impl/block_storage_impl.hpp"#include "blockchain/impl/block_tree_impl.hpp"#include "blockchain/impl/storage_util.hpp"#include "common/outcome_throw.hpp"#include "crypto/hasher/hasher_impl.hpp"#include "network/impl/extrinsic_observer_impl.hpp"#include "runtime/common/runtime_upgrade_tracker_impl.hpp"#include "storage/changes_trie/impl/storage_changes_tracker_impl.hpp"#include "storage/predefined_keys.hpp"#include "storage/rocksdb/rocksdb.hpp"#include "storage/trie/impl/trie_storage_backend_impl.hpp"#include "storage/trie/impl/trie_storage_impl.hpp"#include "storage/trie/polkadot_trie/polkadot_trie_factory_impl.hpp"#include "storage/trie/serialization/polkadot_codec.hpp"#include "storage/trie/serialization/trie_serializer_impl.hpp"#include "utils/profiler.hpp"Go to the source code of this file.
Classes | |
| struct | is_optional< T > |
| struct | is_optional< typename std::optional< T > > |
| class | Configurator |
Typedefs | |
| template<class T > | |
| using | sptr = std::shared_ptr< T > |
Enumerations | |
| enum | ArgNum : uint8_t { DB_PATH = 1, STATE_HASH, MODE } |
| enum | Command : uint8_t { COMPACT, DUMP } |
Functions | |
| template<typename T > | |
| auto | check (T &&res) |
| void | usage () |
| outcome::result< std::unique_ptr< PersistentTrieBatch > > | persistent_batch (const std::unique_ptr< TrieStorageImpl > &trie, const RootHash &hash) |
| void | child_storage_root_hashes (const std::unique_ptr< PersistentTrieBatch > &batch, std::set< RootHash > &hashes) |
| auto | is_hash (const char *s) |
| int | main (int argc, char *argv[]) |
| using sptr = std::shared_ptr<T> |
Definition at line 43 of file kagome_db_editor.cpp.
| enum ArgNum : uint8_t |
| Enumerator | |
|---|---|
| DB_PATH | |
| STATE_HASH | |
| MODE | |
Definition at line 94 of file kagome_db_editor.cpp.
| enum Command : uint8_t |
| Enumerator | |
|---|---|
| COMPACT | |
| DUMP | |
Definition at line 95 of file kagome_db_editor.cpp.
|
inline |
Definition at line 52 of file kagome_db_editor.cpp.
| void child_storage_root_hashes | ( | const std::unique_ptr< PersistentTrieBatch > & | batch, |
| std::set< RootHash > & | hashes | ||
| ) |
Definition at line 137 of file kagome_db_editor.cpp.
| auto is_hash | ( | const char * | s | ) |
Definition at line 161 of file kagome_db_editor.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 166 of file kagome_db_editor.cpp.
| outcome::result<std::unique_ptr<PersistentTrieBatch> > persistent_batch | ( | const std::unique_ptr< TrieStorageImpl > & | trie, |
| const RootHash & | hash | ||
| ) |
Definition at line 119 of file kagome_db_editor.cpp.
| void usage | ( | ) |
Definition at line 97 of file kagome_db_editor.cpp.