Remove call to WorldManager in Block constructor
This commit is contained in:
parent
5db586b911
commit
2e7c40d6dc
|
@ -73,9 +73,6 @@ public class Block {
|
||||||
timestamp, extraData, nonce);
|
timestamp, extraData, nonce);
|
||||||
this.txsState = new Trie(null);
|
this.txsState = new Trie(null);
|
||||||
|
|
||||||
byte[] stateRoot = WorldManager.getInstance().getRepository().getRootHash();
|
|
||||||
this.header.setStateRoot(stateRoot);
|
|
||||||
|
|
||||||
this.header.setTxTrieRoot(txsState.getRootHash());
|
this.header.setTxTrieRoot(txsState.getRootHash());
|
||||||
this.transactionsList = transactionsList;
|
this.transactionsList = transactionsList;
|
||||||
this.uncleList = uncleList;
|
this.uncleList = uncleList;
|
||||||
|
|
Loading…
Reference in New Issue