Browse Source

More stability.

cl-refactor
Gav Wood 11 years ago
parent
commit
df7fab6990
  1. 6
      alethzero/MainWin.cpp

6
alethzero/MainWin.cpp

@ -880,7 +880,8 @@ void Main::on_blocks_currentItemChanged()
Transaction t = st.pending()[txi];
auto r = t.rlp();
if (bool done = m_currentExecution->setup(&r))
bool done = m_currentExecution->setup(&r);
if (!done)
{
auto startGas = m_currentExecution->vm().gas();
for (; !done; done = m_currentExecution->go(1))
@ -1217,7 +1218,8 @@ void Main::on_debug_clicked()
t.receiveAddress = isCreation() ? Address() : fromString(ui->destination->currentText());
t.sign(s);
auto r = t.rlp();
if (bool done = m_currentExecution->setup(&r))
bool done = m_currentExecution->setup(&r);
if (!done)
{
auto startGas = m_currentExecution->vm().gas();
for (; !done; done = m_currentExecution->go(1))

Loading…
Cancel
Save