CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace ionet {
class PacketIo; } }
DEFINE_STATEFUL_VALIDATOR(EligibleHarvester, [](const auto ¬ification, const auto &context) { cache::ImportanceView view(context.Cache.template sub< cache::AccountStateCache >());return view.canHarvest(notification.Signer, context.Height) ? ValidationResult::Success :Failure_Core_Block_Harvester_Ineligible;})
virtual thread::future< timesync::CommunicationTimestamps > networkTime() const =0
Gets communication timestamps from a remote node.
bool IsRemote(AccountType accountType)
Returns true if accountType corresponds to a remote account.
Definition: AccountState.cpp:41
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
static constexpr auto Packet_Type
Definition: RemoteTimeSyncApi.cpp:33
static constexpr auto Friendly_Name
Definition: RemoteTimeSyncApi.cpp:34
An api for retrieving communication timestamps from a remote node.
Definition: RemoteTimeSyncApi.h:30
virtual ~RemoteTimeSyncApi()=default
An interface for reading and writing packets.
Definition: PacketIo.h:31
Provides a way to access the result of an asynchronous operation.
Definition: Future.h:29
RemoteRequestDispatcher m_impl
Definition: RemoteTimeSyncApi.cpp:68
Definition: AddressExtractionExtension.cpp:28
std::unique_ptr< RemoteTimeSyncApi > CreateRemoteTimeSyncApi(ionet::PacketIo &io)
Creates a time sync api for interacting with a remote node with the specified io.
Definition: RemoteTimeSyncApi.cpp:72