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. 7
      eth/main.cpp
  2. 7
      libethereum/State.cpp

7
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();
try
{
e.setup(&r); e.setup(&r);
}
catch(Exception const& _e)
{
cwarn << diagnostic_information(_e);
}
OnOpFunc oof; OnOpFunc oof;
if (format == "pretty") if (format == "pretty")

7
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);
try
{
e.setup(_rlp); e.setup(_rlp);
}
catch (Exception const & _e)
{
cwarn << diagnostic_information(_e);
}
u256 startGasUsed = gasUsed(); u256 startGasUsed = gasUsed();

Loading…
Cancel
Save