#include "block_loader.hpp"


Public Member Functions | |
| virtual iroha::expected::Result< rxcpp::observable< std::shared_ptr< shared_model::interface::Block > >, std::string > | retrieveBlocks (const shared_model::interface::types::HeightType height, shared_model::interface::types::PublicKeyHexStringView peer_pubkey)=0 |
| virtual iroha::expected::Result< std::unique_ptr< shared_model::interface::Block >, std::string > | retrieveBlock (shared_model::interface::types::PublicKeyHexStringView peer_pubkey, shared_model::interface::types::HeightType block_height)=0 |
| virtual | ~BlockLoader ()=default |
Interface for downloading blocks from a network
|
virtualdefault |
|
pure virtual |
Retrieve block by its block_height from given peer
| peer_pubkey | - peer for requesting blocks |
| block_height | - requested block height |
Implemented in iroha::network::BlockLoaderImpl.
|
pure virtual |
Retrieve block from given peer starting from current top
| height | - top block height in requester's peer storage |
| peer_pubkey | - peer for requesting blocks |
Implemented in iroha::network::BlockLoaderImpl.