Browse Source

Fix for io service (thanks, alex!)

cl-refactor
Gav Wood 10 years ago
parent
commit
6a2b875637
  1. 11
      libethereum/Client.cpp
  2. 2
      libp2p/Host.cpp

11
libethereum/Client.cpp

@ -191,6 +191,17 @@ void Client::appendFromNewBlock(h256 _block, h256Set& o_changed) const
o_changed.insert(i.first);
}
void Client::setForceMining(bool _enable)
{
m_forceMining = _enable;
if (!m_host.lock())
{
ReadGuard l(x_miners);
for (auto& m: m_miners)
m.noteStateChange();
}
}
void Client::setMiningThreads(unsigned _threads)
{
stopMining();

2
libp2p/Host.cpp

@ -129,6 +129,8 @@ void Host::stop()
if (m_socket.is_open())
m_socket.close();
disconnectPeers();
m_ioService.reset();
}
unsigned Host::protocolVersion() const

Loading…
Cancel
Save