MCPcopy Create free account
hub / github.com/ElementsProject/elements / subscribeToCoreSignals

Method subscribeToCoreSignals

src/qt/clientmodel.cpp:306–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306void ClientModel::subscribeToCoreSignals()
307{
308 // Connect signals to client
309 m_handler_show_progress = m_node.handleShowProgress(std::bind(ShowProgress, this, std::placeholders::_1, std::placeholders::_2));
310 m_handler_notify_num_connections_changed = m_node.handleNotifyNumConnectionsChanged(std::bind(NotifyNumConnectionsChanged, this, std::placeholders::_1));
311 m_handler_notify_network_active_changed = m_node.handleNotifyNetworkActiveChanged(std::bind(NotifyNetworkActiveChanged, this, std::placeholders::_1));
312 m_handler_notify_alert_changed = m_node.handleNotifyAlertChanged(std::bind(NotifyAlertChanged, this));
313 m_handler_banned_list_changed = m_node.handleBannedListChanged(std::bind(BannedListChanged, this));
314 m_handler_notify_block_tip = m_node.handleNotifyBlockTip(std::bind(BlockTipChanged, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, false));
315 m_handler_notify_header_tip = m_node.handleNotifyHeaderTip(std::bind(BlockTipChanged, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, true));
316}
317
318void ClientModel::unsubscribeFromCoreSignals()
319{

Callers

nothing calls this directly

Tested by

no test coverage detected