Kagome
Polkadot Runtime Engine in C++17
|
#include <storage_changes_tracker_impl.hpp>
Public Member Functions | |
StorageChangesTrackerImpl (primitives::events::StorageSubscriptionEnginePtr storage_subscription_engine, primitives::events::ChainSubscriptionEnginePtr chain_subscription_engine) | |
~StorageChangesTrackerImpl () override=default | |
void | onBlockExecutionStart (primitives::BlockHash new_parent_hash) override |
void | onPut (const common::BufferView &key, const common::BufferView &value, bool new_entry) override |
void | onBlockAdded (const primitives::BlockHash &hash) override |
void | onRemove (const common::BufferView &key) override |
Public Member Functions inherited from kagome::storage::changes_trie::ChangesTracker | |
virtual | ~ChangesTracker ()=default |
Private Attributes | |
std::set< common::Buffer, std::less<> > | new_entries_ |
std::map< common::Buffer, std::optional< common::Buffer >, std::less<> > | actual_val_ |
primitives::BlockHash | parent_hash_ |
primitives::events::StorageSubscriptionEnginePtr | storage_subscription_engine_ |
primitives::events::ChainSubscriptionEnginePtr | chain_subscription_engine_ |
log::Logger | logger_ |
Definition at line 11 of file storage_changes_tracker_impl.hpp.
kagome::storage::changes_trie::StorageChangesTrackerImpl::StorageChangesTrackerImpl | ( | primitives::events::StorageSubscriptionEnginePtr | storage_subscription_engine, |
primitives::events::ChainSubscriptionEnginePtr | chain_subscription_engine | ||
) |
Definition at line 7 of file storage_changes_tracker_impl.cpp.
|
overridedefault |
|
overridevirtual |
Supposed to be called when a block is added to the block tree.
Implements kagome::storage::changes_trie::ChangesTracker.
Definition at line 23 of file storage_changes_tracker_impl.cpp.
|
overridevirtual |
Supposed to be called when a block execution starts
Implements kagome::storage::changes_trie::ChangesTracker.
Definition at line 15 of file storage_changes_tracker_impl.cpp.
|
overridevirtual |
Supposed to be called when an entry is put into the tracked storage
Implements kagome::storage::changes_trie::ChangesTracker.
Definition at line 40 of file storage_changes_tracker_impl.cpp.
|
overridevirtual |
Supposed to be called when an entry is removed from the tracked storage
Implements kagome::storage::changes_trie::ChangesTracker.
Definition at line 54 of file storage_changes_tracker_impl.cpp.
|
private |
Definition at line 33 of file storage_changes_tracker_impl.hpp.
|
private |
Definition at line 38 of file storage_changes_tracker_impl.hpp.
|
private |
Definition at line 39 of file storage_changes_tracker_impl.hpp.
|
private |
Definition at line 30 of file storage_changes_tracker_impl.hpp.
|
private |
Definition at line 35 of file storage_changes_tracker_impl.hpp.
|
private |
Definition at line 37 of file storage_changes_tracker_impl.hpp.