Kagome
Polkadot Runtime Engine in C++17
|
#include <storage_code_provider.hpp>
Public Member Functions | |
~StorageCodeProvider () override=default | |
StorageCodeProvider (std::shared_ptr< const storage::trie::TrieStorage > storage, std::shared_ptr< RuntimeUpgradeTracker > runtime_upgrade_tracker, std::shared_ptr< const CodeSubstituteBlockIds > code_substitutes, std::shared_ptr< application::ChainSpec > chain_spec) | |
outcome::result< gsl::span< const uint8_t > > | getCodeAt (const storage::trie::RootHash &state) const override |
Public Member Functions inherited from kagome::runtime::RuntimeCodeProvider | |
virtual | ~RuntimeCodeProvider ()=default |
Private Member Functions | |
outcome::result< void > | setCodeFromBatch (const storage::trie::EphemeralTrieBatch &batch) const |
Private Attributes | |
std::shared_ptr< const storage::trie::TrieStorage > | storage_ |
std::shared_ptr< RuntimeUpgradeTracker > | runtime_upgrade_tracker_ |
std::shared_ptr< const CodeSubstituteBlockIds > | known_code_substitutes_ |
std::shared_ptr< application::ChainSpec > | chain_spec_ |
common::Buffer | cached_code_ |
storage::trie::RootHash | last_state_root_ |
log::Logger | logger_ |
Definition at line 24 of file storage_code_provider.hpp.
|
overridedefault |
|
explicit |
Definition at line 18 of file storage_code_provider.cpp.
|
overridevirtual |
Implements kagome::runtime::RuntimeCodeProvider.
Definition at line 33 of file storage_code_provider.cpp.
|
private |
Definition at line 55 of file storage_code_provider.cpp.
|
mutableprivate |
Definition at line 44 of file storage_code_provider.hpp.
|
private |
Definition at line 43 of file storage_code_provider.hpp.
|
private |
Definition at line 42 of file storage_code_provider.hpp.
|
mutableprivate |
Definition at line 45 of file storage_code_provider.hpp.
|
private |
Definition at line 46 of file storage_code_provider.hpp.
|
private |
Definition at line 41 of file storage_code_provider.hpp.
|
private |
Definition at line 40 of file storage_code_provider.hpp.