Browse Source

Fix for dumptrace.

cl-refactor
Gav Wood 11 years ago
parent
commit
61b12cfd60
  1. 3
      eth/main.cpp

3
eth/main.cpp

@ -579,6 +579,8 @@ int main(int argc, char** argv)
f.open(filename); f.open(filename);
eth::State state = c.state(index + 1, c.blockChain().numberHash(block)); eth::State state = c.state(index + 1, c.blockChain().numberHash(block));
if (index < state.pending().size())
{
Executive e(state); Executive e(state);
Transaction t = state.pending()[index]; Transaction t = state.pending()[index];
state = state.fromPending(index); state = state.fromPending(index);
@ -617,6 +619,7 @@ int main(int argc, char** argv)
f << ext->myAddress << " " << hex << toHex(eth::toCompactBigEndian(vm->curPC(), 1)) << " " << hex << toHex(eth::toCompactBigEndian((int)(byte)instr, 1)) << " " << hex << toHex(eth::toCompactBigEndian((uint64_t)vm->gas(), 1)) << endl; f << ext->myAddress << " " << hex << toHex(eth::toCompactBigEndian(vm->curPC(), 1)) << " " << hex << toHex(eth::toCompactBigEndian((int)(byte)instr, 1)) << " " << hex << toHex(eth::toCompactBigEndian((uint64_t)vm->gas(), 1)) << endl;
}); });
} }
}
else if (cmd == "inspect") else if (cmd == "inspect")
{ {
string rechex; string rechex;

Loading…
Cancel
Save