CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
53 virtual std::shared_ptr<const model::Block>
loadBlock(
Height height)
const = 0;
66 virtual void purge() = 0;
Minimalistic interface for block storage (does not allow block loading).
Definition: BlockStorage.h:31
virtual std::shared_ptr< const model::Block > loadBlock(Height height) const =0
Returns the block at height.
virtual std::pair< std::vector< uint8_t >, bool > loadBlockStatementData(Height height) const =0
Returns the optional block statement data at height.
virtual std::shared_ptr< const model::BlockElement > loadBlockElement(Height height) const =0
Returns the block element (owning a block) at height.
virtual model::HashRange loadHashesFrom(Height height, size_t maxHashes) const =0
Returns a range of at most maxHashes hashes starting at height.
Interface that allows saving, loading and pruning blocks.
Definition: BlockStorage.h:63
Represents a range of entities.
Definition: EntityRange.h:31
virtual ~LightBlockStorage()=default
virtual void dropBlocksAfter(Height height)=0
Drops all blocks after height.
virtual Height chainHeight() const =0
Gets the number of blocks.
Processing element for a block composed of a block and metadata.
Definition: Elements.h:55
Definition: AddressExtractionExtension.cpp:28
virtual void purge()=0
Purges all blocks from storage.
Interface for saving and loading blocks.
Definition: BlockStorage.h:50
A class that can neither be copied nor moved.
Definition: NonCopyable.h:26
virtual void saveBlock(const model::BlockElement &blockElement)=0
Saves blockElement.