Browse Source

Don't start timer, cleanup before next time.

cl-refactor
Gav Wood 10 years ago
parent
commit
60b0dcbbe0
  1. 3
      alethzero/Transact.cpp

3
alethzero/Transact.cpp

@ -64,8 +64,6 @@ Transact::Transact(MainFace* _c, QWidget* _parent):
setValueUnits(ui->valueUnits, ui->value, 0); setValueUnits(ui->valueUnits, ui->value, 0);
on_destination_currentTextChanged(QString()); on_destination_currentTextChanged(QString());
startTimer(100);
} }
Transact::~Transact() Transact::~Transact()
@ -455,6 +453,7 @@ GasRequirements Transact::determineGasRequirements()
m_lastGood = lastGood; m_lastGood = lastGood;
m_lowerBound = m_startLowerBound; m_lowerBound = m_startLowerBound;
m_upperBound = m_startUpperBound; m_upperBound = m_startUpperBound;
killTimer(m_gasCalcTimer);
m_gasCalcTimer = startTimer(0); m_gasCalcTimer = startTimer(0);
return GasRequirements{m_upperBound, baseGas, m_upperBound - baseGas, (qint64)lastGood.gasRefunded, lastGood}; return GasRequirements{m_upperBound, baseGas, m_upperBound - baseGas, (qint64)lastGood.gasRefunded, lastGood};
} }

Loading…
Cancel
Save