CatapultServer
v0.5.0.1 (Elephant)
BlockChangeSubscriber.h
Go to the documentation of this file.
1
21
#pragma once
22
#include "
catapult/model/Elements.h
"
23
24
namespace
catapult
{
namespace
io {
25
27
class
BlockChangeSubscriber
{
28
public
:
29
virtual
~BlockChangeSubscriber
() =
default
;
30
31
public
:
33
virtual
void
notifyBlock
(
const
model::BlockElement
& blockElement) = 0;
34
36
virtual
void
notifyDropBlocksAfter
(
Height
height) = 0;
37
};
38
}}
catapult::io::BlockChangeSubscriber::~BlockChangeSubscriber
virtual ~BlockChangeSubscriber()=default
catapult::io::BlockChangeSubscriber::notifyBlock
virtual void notifyBlock(const model::BlockElement &blockElement)=0
Indicates blockElement was saved.
catapult::io::BlockChangeSubscriber
Block change subscriber.
Definition:
BlockChangeSubscriber.h:27
Elements.h
catapult::utils::BaseValue< uint64_t, Height_tag >
catapult::io::BlockChangeSubscriber::notifyDropBlocksAfter
virtual void notifyDropBlocksAfter(Height height)=0
Indicates all blocks after height were invalidated.
catapult::model::BlockElement
Processing element for a block composed of a block and metadata.
Definition:
Elements.h:55
catapult
Definition:
AddressExtractionExtension.cpp:28
catapult-server
src
catapult
io
BlockChangeSubscriber.h
Generated by
1.8.16