@ -186,7 +186,7 @@ void BlockInfo::populateFromParent(BlockInfo const& _parent)
m_gasLimit = selectGasLimit(_parent);
m_gasUsed = 0;
m_difficulty = calculateDifficulty(_parent);
m_parentHash = _parent.hash();
m_parentHash = _parent.m_hash;
}
u256 BlockInfo::selectGasLimit(BlockInfo const& _parent) const
@ -1188,7 +1188,7 @@ BOOST_AUTO_TEST_CASE(now)
{
char const* sourceCode = "contract test {\n"
" function someInfo() returns (bool success) {\n"
" return block.timestamp() == now && now > 0;\n"
" return block.timestamp == now && now > 0;\n"
" }\n"
"}\n";
compileAndRun(sourceCode);
@ -41,7 +41,11 @@ namespace test
class ExecutionFramework
public:
ExecutionFramework() { g_logVerbosity = 0; }
ExecutionFramework()
g_logVerbosity = 0;
m_state.resetCurrent();
bytes const& compileAndRunWithoutCheck(
std::string const& _sourceCode,