Example #1
0
Executive::Executive(State& _s, BlockChain const& _bc, EnvInfo const& _envInfo, unsigned _level):
	m_s(_s),
	m_envInfo(_envInfo),
	m_depth(_level)
{
	m_envInfo.setLastHashes(_bc.lastHashes((unsigned)m_envInfo.number() - 1));
}
Example #2
0
Executive::Executive(State& _s, BlockChain const& _bc, unsigned _number, unsigned _level):
	m_s(_s),
	m_envInfo(_bc.info(_bc.numberHash(_number)), _bc.lastHashes(_number - 1)),
	m_depth(_level)
{}
Example #3
0
Executive::Executive(Block& _s, BlockChain const& _bc, unsigned _level):
	Executive(_s, _bc.lastHashes(unsigned(_s.info().number() - 1)), _level)
{}