MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / subscribeToCoreSignals

Method subscribeToCoreSignals

src/qt/clientmodel.cpp:247–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void ClientModel::subscribeToCoreSignals()
248{
249 // Connect signals to client
250 m_handler_show_progress = m_node.handleShowProgress(boost::bind(ShowProgress, this, _1, _2));
251 m_handler_notify_num_connections_changed = m_node.handleNotifyNumConnectionsChanged(boost::bind(NotifyNumConnectionsChanged, this, _1));
252 m_handler_notify_network_active_changed = m_node.handleNotifyNetworkActiveChanged(boost::bind(NotifyNetworkActiveChanged, this, _1));
253 m_handler_notify_alert_changed = m_node.handleNotifyAlertChanged(boost::bind(NotifyAlertChanged, this));
254 m_handler_banned_list_changed = m_node.handleBannedListChanged(boost::bind(BannedListChanged, this));
255 m_handler_notify_block_tip = m_node.handleNotifyBlockTip(boost::bind(BlockTipChanged, this, _1, _2, _3, _4, false));
256 m_handler_notify_header_tip = m_node.handleNotifyHeaderTip(boost::bind(BlockTipChanged, this, _1, _2, _3, _4, true));
257}
258
259void ClientModel::unsubscribeFromCoreSignals()
260{

Callers

nothing calls this directly

Tested by

no test coverage detected