From 2e7c40d6dc2ef3b32e0cbc2c74e86ea94f6b4c7a Mon Sep 17 00:00:00 2001 From: nicksavers Date: Sun, 3 Aug 2014 21:50:09 +0200 Subject: [PATCH] Remove call to WorldManager in Block constructor --- ethereumj-core/src/main/java/org/ethereum/core/Block.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/core/Block.java b/ethereumj-core/src/main/java/org/ethereum/core/Block.java index 745f13c6..5a07e1d1 100644 --- a/ethereumj-core/src/main/java/org/ethereum/core/Block.java +++ b/ethereumj-core/src/main/java/org/ethereum/core/Block.java @@ -73,9 +73,6 @@ public class Block { timestamp, extraData, nonce); this.txsState = new Trie(null); - byte[] stateRoot = WorldManager.getInstance().getRepository().getRootHash(); - this.header.setStateRoot(stateRoot); - this.header.setTxTrieRoot(txsState.getRootHash()); this.transactionsList = transactionsList; this.uncleList = uncleList;