CatapultServer  v0.5.0.1 (Elephant)
catapult::harvesting::UnlockedAccounts Class Reference

Container of all unlocked (harvesting candidate) accounts. More...

Public Member Functions

 UnlockedAccounts (size_t maxUnlockedAccounts)
 Creates an unlocked accounts container that allows at most maxUnlockedAccounts unloced accounts. More...
 
UnlockedAccountsView view () const
 Gets a read only view of the unlocked accounts. More...
 
UnlockedAccountsModifier modifier ()
 Gets a write only view of the unlocked accounts. More...
 

Private Attributes

size_t m_maxUnlockedAccounts
 
std::vector< crypto::KeyPairm_keyPairs
 
utils::SpinReaderWriterLock m_lock
 

Detailed Description

Container of all unlocked (harvesting candidate) accounts.

Constructor & Destructor Documentation

◆ UnlockedAccounts()

catapult::harvesting::UnlockedAccounts::UnlockedAccounts ( size_t  maxUnlockedAccounts)
inlineexplicit

Creates an unlocked accounts container that allows at most maxUnlockedAccounts unloced accounts.

Member Function Documentation

◆ modifier()

UnlockedAccountsModifier catapult::harvesting::UnlockedAccounts::modifier ( )

Gets a write only view of the unlocked accounts.

Here is the call graph for this function:

◆ view()

UnlockedAccountsView catapult::harvesting::UnlockedAccounts::view ( ) const

Gets a read only view of the unlocked accounts.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_keyPairs

std::vector<crypto::KeyPair> catapult::harvesting::UnlockedAccounts::m_keyPairs
private

◆ m_lock

utils::SpinReaderWriterLock catapult::harvesting::UnlockedAccounts::m_lock
mutableprivate

◆ m_maxUnlockedAccounts

size_t catapult::harvesting::UnlockedAccounts::m_maxUnlockedAccounts
private

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