Browse Source

Minor fix for finalize.

cl-refactor
Gav Wood 10 years ago
parent
commit
092528d87a
  1. 3
      libethereum/Executive.cpp

3
libethereum/Executive.cpp

@ -220,7 +220,8 @@ bool Executive::go(OnOpFunc const& _onOp)
void Executive::finalize(OnOpFunc const&)
{
// SSTORE refunds.
m_endGas += min((m_t.gas() - m_endGas) / 2, m_ext->sub.refunds);
if (m_ext)
m_endGas += min((m_t.gas() - m_endGas) / 2, m_ext->sub.refunds);
// cnote << "Refunding" << formatBalance(m_endGas * m_ext->gasPrice) << "to origin (=" << m_endGas << "*" << formatBalance(m_ext->gasPrice) << ")";
m_s.addBalance(m_sender, m_endGas * m_t.gasPrice());

Loading…
Cancel
Save