Skip to content

Commit 7ba6c98

Browse files
committed
Merge pull request #507 from chriseth/sealEngine
Explicitly init seal engine.
2 parents c9ed7fa + d77a138 commit 7ba6c98

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

test/libsolidity/solidityExecutionFramework.h

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ class ExecutionFramework
4747
{
4848
public:
4949
ExecutionFramework():
50-
m_sealEngineInit(),
51-
m_sealEngine(eth::ChainParams().createSealEngine()),
5250
m_state(0)
5351
{
52+
eth::NoProof::init();
53+
m_sealEngine.reset(eth::ChainParams().createSealEngine());
5454
if (g_logVerbosity != -1)
5555
g_logVerbosity = 0;
5656
//m_state.resetCurrent();
@@ -239,17 +239,6 @@ class ExecutionFramework
239239
};
240240

241241
private:
242-
struct sealEngineInit
243-
{
244-
sealEngineInit()
245-
{
246-
dev::eth::BasicAuthority::init();
247-
dev::eth::NoProof::init();
248-
}
249-
};
250-
251-
sealEngineInit m_sealEngineInit;
252-
253242
template <class CppFunction, class... Args>
254243
auto callCppAndEncodeResult(CppFunction const& _cppFunction, Args const&... _arguments)
255244
-> typename std::enable_if<std::is_void<decltype(_cppFunction(_arguments...))>::value, bytes>::type

0 commit comments

Comments
 (0)