diff --git a/test/tools/libtesteth/BlockChainHelper.cpp b/test/tools/libtesteth/BlockChainHelper.cpp index eced4084f31..0933e8cf0b2 100644 --- a/test/tools/libtesteth/BlockChainHelper.cpp +++ b/test/tools/libtesteth/BlockChainHelper.cpp @@ -502,7 +502,9 @@ bool TestBlockChain::addBlock(TestBlock const& _block) block.sync(*m_blockChain.get()); //BOOST_REQUIRE(m_lastBlock.blockHeader().hash() == BlockHeader(block.blockData()).hash()); - m_lastBlock.setState(/*block.fromPending(10000)*/block.state()); + State st(block.state()); + st.setRoot(/*block.stateRootBeforeTx(10000)*/block.info().stateRoot()); + m_lastBlock.setState(/*block.fromPending(10000)*//*block.state()*/st); return true; }