From 729e2822ce7d858ddec314b705a356eac234831a Mon Sep 17 00:00:00 2001 From: nicksavers Date: Wed, 8 Oct 2014 11:48:11 +0200 Subject: [PATCH] Don't store code for empty init return --- .../src/main/java/org/ethereum/core/BlockchainImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/core/BlockchainImpl.java b/ethereumj-core/src/main/java/org/ethereum/core/BlockchainImpl.java index 95e5b1b4..40b14563 100644 --- a/ethereumj-core/src/main/java/org/ethereum/core/BlockchainImpl.java +++ b/ethereumj-core/src/main/java/org/ethereum/core/BlockchainImpl.java @@ -420,7 +420,7 @@ public class BlockchainImpl implements Blockchain { if (initResults) { // Save the code created by init byte[] bodyCode = null; - if (result.getHReturn() != null) { + if (result.getHReturn() != null && result.getHReturn().array().length > 0) { bodyCode = result.getHReturn().array(); }