Browse Source

Added try/catch block arround setup functio in order to resolve issue

cl-refactor
Christoph Jentzsch 10 years ago
parent
commit
0fec528d67
  1. 9
      eth/main.cpp
  2. 9
      libethereum/State.cpp

9
eth/main.cpp

@ -612,7 +612,14 @@ int main(int argc, char** argv)
Transaction t = state.pending()[index]; Transaction t = state.pending()[index];
state = state.fromPending(index); state = state.fromPending(index);
bytes r = t.rlp(); bytes r = t.rlp();
e.setup(&r); try
{
e.setup(&r);
}
catch(Exception const& _e)
{
cwarn << diagnostic_information(_e);
}
OnOpFunc oof; OnOpFunc oof;
if (format == "pretty") if (format == "pretty")

9
libethereum/State.cpp

@ -1052,7 +1052,14 @@ u256 State::execute(bytesConstRef _rlp, bytes* o_output, bool _commit)
Manifest ms; Manifest ms;
Executive e(*this, &ms); Executive e(*this, &ms);
e.setup(_rlp); try
{
e.setup(_rlp);
}
catch (Exception const & _e)
{
cwarn << diagnostic_information(_e);
}
u256 startGasUsed = gasUsed(); u256 startGasUsed = gasUsed();

Loading…
Cancel
Save