| 304 | } |
| 305 | |
| 306 | void 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 | |
| 318 | void ClientModel::unsubscribeFromCoreSignals() |
| 319 | { |
nothing calls this directly
no test coverage detected