Browse Source

Catch exceptions.

cl-refactor
Gav Wood 11 years ago
parent
commit
6678281f1a
  1. 2
      libethereum/BlockChain.cpp
  2. 1
      test/vm.cpp

2
libethereum/BlockChain.cpp

@ -33,6 +33,8 @@
using namespace std;
using namespace eth;
#define ETH_CATCH 1
namespace eth
{
std::ostream& operator<<(std::ostream& _out, BlockChain const& _bc)

1
test/vm.cpp

@ -59,6 +59,7 @@ public:
c.receiveAddress = Address();
c.nonce = 0;
c.data = assemble("txsender sload txvalue add txsender sstore stop");
// (sstore (add (txvalue (sload txsender))))
c.value = ether;
c.sign(p.secret());
s.execute(c.rlp());

Loading…
Cancel
Save