diff options
author | Bob Summerwill <bob@summerwill.net> | 2016-04-16 03:06:32 +0800 |
---|---|---|
committer | Bob Summerwill <bob@summerwill.net> | 2016-04-16 03:06:32 +0800 |
commit | 7ba6c98e5f3b58290498b1534ab5355ff36c6e8f (patch) | |
tree | cb66e52da2469fdcc11f6e645858192dd0209aab | |
parent | c9ed7facba3f8897cc43f170cee8c46442eca40d (diff) | |
parent | d77a13878acc55b5e8a73f280d34472f8a7a8e62 (diff) | |
download | dexon-solidity-7ba6c98e5f3b58290498b1534ab5355ff36c6e8f.tar.gz dexon-solidity-7ba6c98e5f3b58290498b1534ab5355ff36c6e8f.tar.zst dexon-solidity-7ba6c98e5f3b58290498b1534ab5355ff36c6e8f.zip |
Merge pull request #507 from chriseth/sealEngine
Explicitly init seal engine.
-rw-r--r-- | test/libsolidity/solidityExecutionFramework.h | 15 |
1 files changed, 2 insertions, 13 deletions
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 <class CppFunction, class... Args> auto callCppAndEncodeResult(CppFunction const& _cppFunction, Args const&... _arguments) -> typename std::enable_if<std::is_void<decltype(_cppFunction(_arguments...))>::value, bytes>::type |