mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #507 from chriseth/sealEngine
Explicitly init seal engine.
This commit is contained in:
commit
7ba6c98e5f
@ -47,10 +47,10 @@ class ExecutionFramework
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ExecutionFramework():
|
ExecutionFramework():
|
||||||
m_sealEngineInit(),
|
|
||||||
m_sealEngine(eth::ChainParams().createSealEngine()),
|
|
||||||
m_state(0)
|
m_state(0)
|
||||||
{
|
{
|
||||||
|
eth::NoProof::init();
|
||||||
|
m_sealEngine.reset(eth::ChainParams().createSealEngine());
|
||||||
if (g_logVerbosity != -1)
|
if (g_logVerbosity != -1)
|
||||||
g_logVerbosity = 0;
|
g_logVerbosity = 0;
|
||||||
//m_state.resetCurrent();
|
//m_state.resetCurrent();
|
||||||
@ -239,17 +239,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct sealEngineInit
|
|
||||||
{
|
|
||||||
sealEngineInit()
|
|
||||||
{
|
|
||||||
dev::eth::BasicAuthority::init();
|
|
||||||
dev::eth::NoProof::init();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
sealEngineInit m_sealEngineInit;
|
|
||||||
|
|
||||||
template <class CppFunction, class... Args>
|
template <class CppFunction, class... Args>
|
||||||
auto callCppAndEncodeResult(CppFunction const& _cppFunction, Args const&... _arguments)
|
auto callCppAndEncodeResult(CppFunction const& _cppFunction, Args const&... _arguments)
|
||||||
-> typename std::enable_if<std::is_void<decltype(_cppFunction(_arguments...))>::value, bytes>::type
|
-> typename std::enable_if<std::is_void<decltype(_cppFunction(_arguments...))>::value, bytes>::type
|
||||||
|
Loading…
Reference in New Issue
Block a user