From 6678281f1a436df8b752be1a25c98db029769d82 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 18 Feb 2014 22:55:22 +0000 Subject: [PATCH] Catch exceptions. --- libethereum/BlockChain.cpp | 2 ++ test/vm.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/libethereum/BlockChain.cpp b/libethereum/BlockChain.cpp index 9dec365c4..872026d90 100644 --- a/libethereum/BlockChain.cpp +++ b/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) diff --git a/test/vm.cpp b/test/vm.cpp index a6901afe6..32259b5e6 100644 --- a/test/vm.cpp +++ b/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());