TARAXA
Loading...
Searching...
No Matches
taraxa::PbftManager::EligibleWallets Class Reference

#include <pbft_manager.hpp>

Public Member Functions

 EligibleWallets (const std::vector< WalletConfig > &wallets)
 
void updateWalletsEligibility (PbftPeriod period, const std::shared_ptr< final_chain::FinalChain > &final_chain)
 
const std::vector< std::pair< bool, WalletConfig > > & getWallets (PbftPeriod current_pbft_period) const
 
PbftPeriod getWalletsEligiblePeriod () const
 

Private Attributes

PbftPeriod period_ {0}
 
std::vector< std::pair< bool, WalletConfig > > wallets_
 

Constructor & Destructor Documentation

◆ EligibleWallets()

taraxa::PbftManager::EligibleWallets::EligibleWallets ( const std::vector< WalletConfig > &  wallets)

Member Function Documentation

◆ getWallets()

const std::vector< std::pair< bool, WalletConfig > > & taraxa::PbftManager::EligibleWallets::getWallets ( PbftPeriod  current_pbft_period) const

◆ getWalletsEligiblePeriod()

PbftPeriod taraxa::PbftManager::EligibleWallets::getWalletsEligiblePeriod ( ) const

◆ updateWalletsEligibility()

void taraxa::PbftManager::EligibleWallets::updateWalletsEligibility ( PbftPeriod  period,
const std::shared_ptr< final_chain::FinalChain > &  final_chain 
)

Member Data Documentation

◆ period_

PbftPeriod taraxa::PbftManager::EligibleWallets::period_ {0}
private

◆ wallets_

std::vector<std::pair<bool , WalletConfig> > taraxa::PbftManager::EligibleWallets::wallets_
private

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