Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | class Processor { | ||||
/** Event loop machinery. */ | /** Event loop machinery. */ | ||||
EventLoop eventLoop; | EventLoop eventLoop; | ||||
/** Registered interfaces::Chain::Notifications handler. */ | /** Registered interfaces::Chain::Notifications handler. */ | ||||
class NotificationsHandler; | class NotificationsHandler; | ||||
std::unique_ptr<interfaces::Handler> chainNotificationsHandler; | std::unique_ptr<interfaces::Handler> chainNotificationsHandler; | ||||
Processor(interfaces::Chain &chain, CConnman *connmanIn, | Processor(interfaces::Chain &chain, CConnman *connmanIn, | ||||
std::unique_ptr<PeerData> peerDataIn, CKey sessionKeyIn); | std::unique_ptr<PeerData> peerDataIn, CKey sessionKeyIn, | ||||
std::chrono::milliseconds queryTimeoutDurationIn); | |||||
public: | public: | ||||
~Processor(); | ~Processor(); | ||||
static std::unique_ptr<Processor> MakeProcessor(const ArgsManager &argsman, | static std::unique_ptr<Processor> MakeProcessor(const ArgsManager &argsman, | ||||
interfaces::Chain &chain, | interfaces::Chain &chain, | ||||
CConnman *connman, | CConnman *connman, | ||||
bilingual_str &error); | bilingual_str &error); | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |