CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace cache {
class ReadOnlyAccountStateCache; } }
26 namespace catapult {
namespace cache {
MosaicId harvestingMosaicId() const
Gets the harvesting mosaic id.
Definition: ReadOnlyAccountStateCache.cpp:53
Account is a remote harvester account that is linked to a balance-holding account.
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
bool tryGetAccountImportance(const Key &publicKey, Height height, Importance &importance) const
Tries to populate importance with the importance for publicKey at height.
Definition: ImportanceView.cpp:69
Amount minHarvesterBalance() const
Gets the minimum harvester balance.
Definition: ReadOnlyAccountStateCache.cpp:49
bool canHarvest(const Key &publicKey, Height height) const
Returns true if publicKey can harvest at height.
Definition: ImportanceView.cpp:81
Address PublicKeyToAddress(const Key &publicKey, NetworkIdentifier networkIdentifier)
Creates an address from a public key (publicKey) for the network identified by networkIdentifier.
Definition: Address.cpp:50
std::function< void()> action
An action function.
Definition: functions.h:27
void RequireLinkedRemoteAndMainAccounts(const AccountState &remoteAccountState, const AccountState &mainAccountState)
Requires that remoteAccountState and mainAccountState state are linked.
Definition: AccountState.cpp:52
ImportanceView(const ReadOnlyAccountStateCache &cache)
Creates a view around cache.
Definition: ImportanceView.cpp:66
Definition: AddressExtractionExtension.cpp:28
const ReadOnlyAccountStateCache & m_cache
Definition: ImportanceView.h:45
A read-only overlay on top of an account cache.
Definition: ReadOnlyAccountStateCache.h:36
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
ImportanceHeight ConvertToImportanceHeight(Height height, Height::ValueType grouping)
Definition: ImportanceHeight.cpp:33
const cache::CatapultCache & m_cache
Definition: JointValidator.cpp:84
A view on top of an account state cache for retrieving importances.
Definition: ImportanceView.h:29
Importance getAccountImportanceOrDefault(const Key &publicKey, Height height) const
Gets the importance for publicKey at height or a default importance if no importance is set.
Definition: ImportanceView.cpp:76