From 1a37f2b3dadb851f1377ac336d42c323050d98a9 Mon Sep 17 00:00:00 2001 From: arkpar Date: Wed, 3 Jun 2015 17:14:20 +0200 Subject: [PATCH] fixed blockchain kill --- libethereum/Client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libethereum/Client.cpp b/libethereum/Client.cpp index 96353ade2..1491c83d7 100644 --- a/libethereum/Client.cpp +++ b/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();