Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::RuntimeUpgradeTracker Class Referenceabstract

#include <runtime_upgrade_tracker.hpp>

Inheritance diagram for kagome::runtime::RuntimeUpgradeTracker:
Collaboration diagram for kagome::runtime::RuntimeUpgradeTracker:

Public Member Functions

virtual ~RuntimeUpgradeTracker ()=default
 
virtual outcome::result< storage::trie::RootHashgetLastCodeUpdateState (const primitives::BlockInfo &block)=0
 
virtual outcome::result< primitives::BlockInfogetLastCodeUpdateBlockInfo (const storage::trie::RootHash &state) const =0
 

Detailed Description

Tracks the upgrades of the runtime and supplies the states where it happened

Definition at line 19 of file runtime_upgrade_tracker.hpp.

Constructor & Destructor Documentation

virtual kagome::runtime::RuntimeUpgradeTracker::~RuntimeUpgradeTracker ( )
virtualdefault

Member Function Documentation

virtual outcome::result<primitives::BlockInfo> kagome::runtime::RuntimeUpgradeTracker::getLastCodeUpdateBlockInfo ( const storage::trie::RootHash state) const
pure virtual
virtual outcome::result<storage::trie::RootHash> kagome::runtime::RuntimeUpgradeTracker::getLastCodeUpdateState ( const primitives::BlockInfo block)
pure virtual
Returns
the latest block earlier or equal to
Parameters
block,whereruntime upgrade happened

Implemented in kagome::runtime::RuntimeUpgradeTrackerImpl.


The documentation for this class was generated from the following file: