diff --git a/ethereumj-core/src/main/java/org/ethereum/core/TransactionExecutor.java b/ethereumj-core/src/main/java/org/ethereum/core/TransactionExecutor.java index f3f50ba0..235b9650 100644 --- a/ethereumj-core/src/main/java/org/ethereum/core/TransactionExecutor.java +++ b/ethereumj-core/src/main/java/org/ethereum/core/TransactionExecutor.java @@ -3,6 +3,7 @@ package org.ethereum.core; import org.ethereum.db.BlockStore; import org.ethereum.facade.Repository; import org.ethereum.listener.EthereumListener; +import org.ethereum.listener.EthereumListenerAdapter; import org.ethereum.vm.DataWord; import org.ethereum.vm.GasCost; import org.ethereum.vm.LogInfo; @@ -48,6 +49,12 @@ public class TransactionExecutor { private final EthereumListener listener; + public TransactionExecutor(Transaction tx, byte[] coinbase, Repository track, BlockStore blockStore, + ProgramInvokeFactory programInvokeFactory, Block currentBlock) { + + this(tx, coinbase, track, blockStore, programInvokeFactory, currentBlock, new EthereumListenerAdapter()); + } + public TransactionExecutor(Transaction tx, byte[] coinbase, Repository track, BlockStore blockStore, ProgramInvokeFactory programInvokeFactory, Block currentBlock, EthereumListener listener) { diff --git a/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/TestRunner.java b/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/TestRunner.java index 42b121a2..7bf2ca1c 100644 --- a/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/TestRunner.java +++ b/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/TestRunner.java @@ -105,7 +105,7 @@ public class TestRunner { Repository track = repository.startTracking(); TransactionExecutor executor = new TransactionExecutor(tx, coinbase, track, new BlockStoreDummy(), - invokeFactory, blockchain.getBestBlock(), new EthereumListenerAdapter()); + invokeFactory, blockchain.getBestBlock()); executor.execute(); track.commit();