From d77a13878acc55b5e8a73f280d34472f8a7a8e62 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 15 Apr 2016 20:16:07 +0200 Subject: Explicitly init seal engine. --- test/libsolidity/solidityExecutionFramework.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'test') diff --git a/test/libsolidity/solidityExecutionFramework.h b/test/libsolidity/solidityExecutionFramework.h index a7192aca..3fcbfaed 100644 --- a/test/libsolidity/solidityExecutionFramework.h +++ b/test/libsolidity/solidityExecutionFramework.h @@ -47,10 +47,10 @@ class ExecutionFramework { public: ExecutionFramework(): - m_sealEngineInit(), - m_sealEngine(eth::ChainParams().createSealEngine()), m_state(0) { + eth::NoProof::init(); + m_sealEngine.reset(eth::ChainParams().createSealEngine()); if (g_logVerbosity != -1) g_logVerbosity = 0; //m_state.resetCurrent(); @@ -239,17 +239,6 @@ public: }; private: - struct sealEngineInit - { - sealEngineInit() - { - dev::eth::BasicAuthority::init(); - dev::eth::NoProof::init(); - } - }; - - sealEngineInit m_sealEngineInit; - template auto callCppAndEncodeResult(CppFunction const& _cppFunction, Args const&... _arguments) -> typename std::enable_if::value, bytes>::type -- cgit