Browse Source

Merge branch 'develop' into pr-jit

cl-refactor
Paweł Bylica 10 years ago
parent
commit
495b93c733
  1. 4
      astylerc
  2. 2
      libethereum/Executive.cpp
  3. 2
      libethereum/State.cpp

4
astylerc

@ -6,6 +6,6 @@ min-conditional-indent=1
pad-oper
pad-header
unpad-paren
delete-empty-lines
align-pointer=type
keep-one-line-blocks
close-templates

2
libethereum/Executive.cpp

@ -138,7 +138,7 @@ bool Executive::create(Address _sender, u256 _endowment, u256 _gasPrice, u256 _g
m_newAddress = right160(sha3(rlpList(_sender, m_s.transactionsFrom(_sender) - 1)));
// Set up new account...
m_s.m_cache[m_newAddress] = AddressState(0, m_s.balance(m_newAddress) + _endowment, h256(), h256());
m_s.m_cache[m_newAddress] = AddressState(0, m_s.balance(m_newAddress) + _endowment, EmptyTrie, h256());
// Execute _init.
m_vm = VMFace::create(VMFace::JIT, _gas).release();

2
libethereum/State.cpp

@ -1091,7 +1091,7 @@ bool State::isTrieGood(bool _enforceRefs, bool _requireNoLeftOvers) const
RLP r(i.second);
TrieDB<h256, OverlayDB> storageDB(const_cast<OverlayDB*>(&m_db), r[2].toHash<h256>()); // promise not to alter OverlayDB.
for (auto const& j: storageDB) { (void)j; }
if (!e && r[3].toHash<h256>() && m_db.lookup(r[3].toHash<h256>()).empty())
if (!e && r[3].toHash<h256>() != EmptySHA3 && m_db.lookup(r[3].toHash<h256>()).empty())
return false;
}
}

Loading…
Cancel
Save