TARAXA
graphql::taraxa::SyncState Class Reference

#include <sync_state.hpp>

Public Member Functions

 SyncState (std::shared_ptr<::taraxa::final_chain::FinalChain > final_chain, std::weak_ptr<::taraxa::Network > network) noexcept
 
response::Value getStartingBlock () const noexcept
 
response::Value getCurrentBlock () const noexcept
 
response::Value getHighestBlock () const noexcept
 
std::optional< response::Value > getPulledStates () const noexcept
 
std::optional< response::Value > getKnownStates () const noexcept
 

Private Attributes

std::shared_ptr<::taraxa::final_chain::FinalChainfinal_chain_
 
std::weak_ptr<::taraxa::Networknetwork_
 

Constructor & Destructor Documentation

◆ SyncState()

graphql::taraxa::SyncState::SyncState ( std::shared_ptr<::taraxa::final_chain::FinalChain final_chain,
std::weak_ptr<::taraxa::Network network 
)
explicitnoexcept

Member Function Documentation

◆ getCurrentBlock()

response::Value graphql::taraxa::SyncState::getCurrentBlock ( ) const
noexcept

◆ getHighestBlock()

response::Value graphql::taraxa::SyncState::getHighestBlock ( ) const
noexcept

◆ getKnownStates()

std::optional< response::Value > graphql::taraxa::SyncState::getKnownStates ( ) const
noexcept

◆ getPulledStates()

std::optional< response::Value > graphql::taraxa::SyncState::getPulledStates ( ) const
noexcept

◆ getStartingBlock()

response::Value graphql::taraxa::SyncState::getStartingBlock ( ) const
noexcept

Member Data Documentation

◆ final_chain_

std::shared_ptr<::taraxa::final_chain::FinalChain> graphql::taraxa::SyncState::final_chain_
private

◆ network_

std::weak_ptr<::taraxa::Network> graphql::taraxa::SyncState::network_
private

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