From 53d6e4a0141ac30449c278d9462eb98a48b2eedc Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 23 Jul 2015 23:26:18 +0200 Subject: [PATCH] Don't crash when using a private chain. --- libethereum/CanonBlockChain.cpp | 2 -- libethereum/Client.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libethereum/CanonBlockChain.cpp b/libethereum/CanonBlockChain.cpp index 63d42bccd..b30efdbdf 100644 --- a/libethereum/CanonBlockChain.cpp +++ b/libethereum/CanonBlockChain.cpp @@ -38,8 +38,6 @@ using namespace dev; using namespace dev::eth; namespace js = json_spirit; -#define ETH_CATCH 1 - std::unique_ptr CanonBlockChain::s_genesis; boost::shared_mutex CanonBlockChain::x_genesis; Nonce CanonBlockChain::s_nonce(u64(42)); diff --git a/libethereum/Client.cpp b/libethereum/Client.cpp index 4bbbf4cd2..d1d3fa22c 100644 --- a/libethereum/Client.cpp +++ b/libethereum/Client.cpp @@ -352,7 +352,7 @@ void Client::killChain() bc().reopen(Defaults::dbPath(), WithExisting::Kill); m_preMine = bc().genesisState(m_stateDB); - m_postMine = State(m_stateDB); + m_postMine = m_preMine; } if (auto h = m_host.lock())