Browse Source

fixed blockchain kill

cl-refactor
arkpar 10 years ago
parent
commit
1a37f2b3da
  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