From 659858f6c0045f76507916b8d5d06fe84663eab2 Mon Sep 17 00:00:00 2001 From: arkpar Date: Thu, 16 Jul 2015 11:43:23 +0200 Subject: [PATCH] fixed build --- evmjit/libevmjit-cpp/JitVM.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/evmjit/libevmjit-cpp/JitVM.cpp b/evmjit/libevmjit-cpp/JitVM.cpp index 4e1fb66ea..d96da87c1 100644 --- a/evmjit/libevmjit-cpp/JitVM.cpp +++ b/evmjit/libevmjit-cpp/JitVM.cpp @@ -23,8 +23,8 @@ bytesConstRef JitVM::execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _on // TODO: Rejecting transactions with gas limit > 2^63 can be used by attacker to take JIT out of scope rejected |= io_gas > std::numeric_limits::max(); // Do not accept requests with gas > 2^63 (int64 max) rejected |= _ext.gasPrice > std::numeric_limits::max(); - rejected |= _ext.currentBlock.number > std::numeric_limits::max(); - rejected |= _ext.currentBlock.timestamp() > std::numeric_limits::max(); + rejected |= _ext.currentBlock.number() > std::numeric_limits::max(); + rejected |= _ext.currentBlock.timestamp() > std::numeric_limits::max(); if (rejected) { @@ -42,10 +42,10 @@ bytesConstRef JitVM::execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _on m_data.origin = eth2jit(fromAddress(_ext.origin)); m_data.callValue = eth2jit(_ext.value); m_data.coinBase = eth2jit(fromAddress(_ext.currentBlock.coinbaseAddress())); - m_data.difficulty = eth2jit(_ext.currentBlock.difficulty); - m_data.gasLimit = eth2jit(_ext.currentBlock.gasLimit); - m_data.number = static_cast(_ext.currentBlock.number); - m_data.timestamp() = static_cast(_ext.currentBlock.timestamp()); + m_data.difficulty = eth2jit(_ext.currentBlock.difficulty()); + m_data.gasLimit = eth2jit(_ext.currentBlock.gasLimit()); + m_data.number = static_cast(_ext.currentBlock.number()); + m_data.timestamp = static_cast(_ext.currentBlock.timestamp()); m_data.code = _ext.code.data(); m_data.codeSize = _ext.code.size(); m_data.codeHash = eth2jit(_ext.codeHash);