Kagome
Polkadot Runtime Engine in C++17
|
#include <service.hpp>
Public Member Functions | |
virtual | ~TelemetryService ()=default |
virtual void | setGenesisBlockHash (const primitives::BlockHash &hash)=0 |
virtual void | notifyWasSynchronized ()=0 |
virtual void | notifyBlockImported (const primitives::BlockInfo &info, BlockOrigin origin)=0 |
virtual void | notifyBlockFinalized (const primitives::BlockInfo &info)=0 |
virtual bool | isEnabled () const =0 |
Telemetry service interface
Definition at line 44 of file service.hpp.
|
virtualdefault |
|
pure virtual |
Telemetry service status
Implemented in kagome::telemetry::TelemetryServiceImpl.
|
pure virtual |
Inform about the last finalized block
info | - block info |
Implemented in kagome::telemetry::TelemetryServiceImpl.
|
pure virtual |
Inform about last known block
info | - block info |
origin | - source of the block |
Implemented in kagome::telemetry::TelemetryServiceImpl.
|
pure virtual |
Let the telemetry service know that the node has been in a synchronized state at least once.
After this call all kNetworkInitialSync events will be treated as kNetworkBroadcast
Implemented in kagome::telemetry::TelemetryServiceImpl.
|
pure virtual |
Used to initially inform the service about the genesis hash.
hash | genesis hash for the network |
Allows to avoid circular references in classes dependency tree
Implemented in kagome::telemetry::TelemetryServiceImpl.