Browse Source

Mac compile fixes.

cl-refactor
Gav Wood 10 years ago
parent
commit
40693a1ad3
  1. 2
      libethereum/Client.cpp
  2. 2
      libethereum/Executive.cpp

2
libethereum/Client.cpp

@ -67,7 +67,7 @@ void BasicGasPricer::update(BlockChain const& _bc)
m_gasPerBlock = _bc.info(p).gasLimit; m_gasPerBlock = _bc.info(p).gasLimit;
map<u256, unsigned> dist; map<u256, unsigned> dist;
unsigned total; unsigned total = 0;
while (c < 1000 && p) while (c < 1000 && p)
{ {
BlockInfo bi = _bc.info(p); BlockInfo bi = _bc.info(p);

2
libethereum/Executive.cpp

@ -176,7 +176,7 @@ OnOpFunc Executive::simpleTrace()
o << endl << " STACK" << endl; o << endl << " STACK" << endl;
for (auto i: vm.stack()) for (auto i: vm.stack())
o << (h256)i << endl; o << (h256)i << endl;
o << " MEMORY" << endl << (vm.memory().size() > 1000) ? " mem size greater than 1000 bytes " : memDump(vm.memory()); o << " MEMORY" << endl << ((vm.memory().size() > 1000) ? " mem size greater than 1000 bytes " : memDump(vm.memory()));
o << " STORAGE" << endl; o << " STORAGE" << endl;
for (auto const& i: ext.state().storage(ext.myAddress)) for (auto const& i: ext.state().storage(ext.myAddress))
o << showbase << hex << i.first << ": " << i.second << endl; o << showbase << hex << i.first << ": " << i.second << endl;

Loading…
Cancel
Save