Kagome
Polkadot Runtime Engine in C++17
|
#include <changes_tracker.hpp>
Public Member Functions | |
virtual | ~ChangesTracker ()=default |
virtual void | onBlockExecutionStart (primitives::BlockHash new_parent_hash)=0 |
virtual void | onPut (const common::BufferView &key, const common::BufferView &value, bool new_entry)=0 |
virtual void | onBlockAdded (const primitives::BlockHash &hash)=0 |
virtual void | onRemove (const common::BufferView &key)=0 |
Stores the information about changes to the storage in accordance with the supplied config. Used to build the changes trie. onChange() must be called every time a persistent change to the node storage is made.
Definition at line 15 of file changes_tracker.hpp.
|
virtualdefault |
|
pure virtual |
Supposed to be called when a block is added to the block tree.
Implemented in kagome::storage::changes_trie::StorageChangesTrackerImpl.
|
pure virtual |
Supposed to be called when a block execution starts
Implemented in kagome::storage::changes_trie::StorageChangesTrackerImpl.
|
pure virtual |
Supposed to be called when an entry is put into the tracked storage
Implemented in kagome::storage::changes_trie::StorageChangesTrackerImpl.
|
pure virtual |
Supposed to be called when an entry is removed from the tracked storage
Implemented in kagome::storage::changes_trie::StorageChangesTrackerImpl.