Browse Source

Merge pull request #2077 from arkpar/fix_kill

Fixed blockchain kill
cl-refactor
Gav Wood 10 years ago
parent
commit
5b4e104e1f
  1. 3
      libethereum/Client.cpp

3
libethereum/Client.cpp

@ -269,9 +269,11 @@ void Client::killChain()
{
WriteGuard l(x_postMine);
WriteGuard l2(x_preMine);
WriteGuard l3(x_working);
m_preMine = State();
m_postMine = State();
m_working = State();
m_stateDB = OverlayDB();
m_stateDB = State::openDB(Defaults::dbPath(), WithExisting::Kill);
@ -284,6 +286,7 @@ void Client::killChain()
if (auto h = m_host.lock())
h->reset();
startedWorking();
doWork();
startWorking();

Loading…
Cancel
Save