CatapultServer
v0.5.0.1 (Elephant)
|
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::KeyPair > | m_keyPairs |
utils::SpinReaderWriterLock | m_lock |
Container of all unlocked (harvesting candidate) accounts.
|
inlineexplicit |
Creates an unlocked accounts container that allows at most maxUnlockedAccounts unloced accounts.
UnlockedAccountsModifier catapult::harvesting::UnlockedAccounts::modifier | ( | ) |
Gets a write only view of the unlocked accounts.
UnlockedAccountsView catapult::harvesting::UnlockedAccounts::view | ( | ) | const |
Gets a read only view of the unlocked accounts.
|
private |
|
mutableprivate |
|
private |