Browse Source

Quick fix.

cl-refactor
Gav Wood 11 years ago
parent
commit
64733df11e
  1. 5
      CMakeLists.txt
  2. 6
      alethzero/MainWin.cpp

5
CMakeLists.txt

@ -122,9 +122,8 @@ if(${TARGET_PLATFORM} STREQUAL "w64")
else()
# Look for available Crypto++ version and if it is >= 5.6.2
find_path(CRYPTOPP_ID cryptlib.h
../Xcryptopp/src
../../Xcryptopp/src)
message(${CRYPTOPP_ID})
../cryptopp/src
../../cryptopp/src)
if(NOT ${CRYPTOPP_ID} STREQUAL "CRYPTOPP_ID-NOTFOUND")
message("Local cryptopp OK.")
set(CRYPTOPP_LS ${CRYPTOPP_ID}/../target/build/release/libcryptopp.so)

6
alethzero/MainWin.cpp

@ -1216,16 +1216,18 @@ void Main::on_debug_clicked()
t.sign(s);
auto r = t.rlp();
m_currentExecution->setup(&r);
bool ok = m_currentExecution->setup(&r);
m_pcWarp.clear();
m_history.clear();
bool ok = true;
if (ok)
{
auto gasBegin = m_currentExecution->vm().gas();
while (ok)
{
m_history.append(WorldState({m_currentExecution->vm().curPC(), m_currentExecution->vm().gas(), gasBegin - m_currentExecution->vm().gas(), m_currentExecution->vm().stack(), m_currentExecution->vm().memory(), m_currentExecution->state().storage(m_currentExecution->ext().myAddress)}));
ok = !m_currentExecution->go(1);
}
}
initDebugger();
m_currentExecution.reset();
updateDebugger();

Loading…
Cancel
Save