Browse Source

Fix for normal-normal txs.

cl-refactor
Gav Wood 11 years ago
parent
commit
9a7a8aa2ef
  1. 1
      alethzero/MainWin.cpp
  2. 2
      libethereum/State.cpp

1
alethzero/MainWin.cpp

@ -367,6 +367,7 @@ void Main::readSettings()
for (unsigned i = 0; i < b.size() / sizeof(Secret); ++i)
{
memcpy(&k, b.data() + i * sizeof(Secret), sizeof(Secret));
if (!count(m_myKeys.begin(), m_myKeys.end(), KeyPair(k)))
m_myKeys.append(KeyPair(k));
}
}

2
libethereum/State.cpp

@ -867,7 +867,7 @@ u256 State::execute(bytesConstRef _rlp)
commit();
if (e.t().receiveAddress)
assert(m_db.lookup(storageRoot(e.t().receiveAddress), true).size());
assert(!storageRoot(e.t().receiveAddress) || m_db.lookup(storageRoot(e.t().receiveAddress), true).size());
cnote << "Executed; now" << rootHash();
cnote << old.diff(*this);

Loading…
Cancel
Save