From 832c24014d068edee183febd1907b30dba13d01b Mon Sep 17 00:00:00 2001 From: Roman Mandeleil Date: Tue, 6 Jan 2015 16:42:51 +0200 Subject: [PATCH] Fix internal call halt on any Exception push zero --- ethereumj-core/src/main/java/org/ethereum/vm/Program.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/vm/Program.java b/ethereumj-core/src/main/java/org/ethereum/vm/Program.java index 4fdb11be..974150bc 100644 --- a/ethereumj-core/src/main/java/org/ethereum/vm/Program.java +++ b/ethereumj-core/src/main/java/org/ethereum/vm/Program.java @@ -351,8 +351,7 @@ public class Program { } if (result != null && - result.getException() != null && - result.getException() instanceof Program.OutOfGasException) { + result.getException() != null) { logger.debug("contract run halted by Exception: contract: [{}], exception: [{}]", Hex.toHexString(newAddress), result.getException()); @@ -464,8 +463,7 @@ public class Program { } if (result != null && - result.getException() != null && - result.getException() instanceof Program.OutOfGasException) { + result.getException() != null) { gasLogger.debug("contract run halted by Exception: contract: [{}], exception: [{}]", Hex.toHexString(contextAddress), result.getException());