|
@ -136,7 +136,7 @@ PopulationStatistics State::populateFromChain(BlockChain const& _bc, h256 const& |
|
|
// 2. Enact the block's transactions onto this state.
|
|
|
// 2. Enact the block's transactions onto this state.
|
|
|
m_ourAddress = bi.coinbaseAddress(); |
|
|
m_ourAddress = bi.coinbaseAddress(); |
|
|
Timer t; |
|
|
Timer t; |
|
|
auto vb = _bc.verifyBlock(&b, function<void(Exception&)>(), _ir); |
|
|
auto vb = _bc.verifyBlock(&b, function<void(Exception&)>(), _ir | ImportRequirements::TransactionBasic); |
|
|
ret.verify = t.elapsed(); |
|
|
ret.verify = t.elapsed(); |
|
|
t.restart(); |
|
|
t.restart(); |
|
|
enact(vb, _bc); |
|
|
enact(vb, _bc); |
|
@ -651,7 +651,7 @@ u256 State::enact(VerifiedBlockRef const& _block, BlockChain const& _bc) |
|
|
InvalidReceiptsStateRoot ex; |
|
|
InvalidReceiptsStateRoot ex; |
|
|
ex << Hash256RequirementError(receiptsRoot, m_currentBlock.receiptsRoot()); |
|
|
ex << Hash256RequirementError(receiptsRoot, m_currentBlock.receiptsRoot()); |
|
|
ex << errinfo_receipts(receipts); |
|
|
ex << errinfo_receipts(receipts); |
|
|
ex << errinfo_vmtrace(vmTrace(_block.block, _bc, ImportRequirements::None)); |
|
|
// ex << errinfo_vmtrace(vmTrace(_block.block, _bc, ImportRequirements::None));
|
|
|
BOOST_THROW_EXCEPTION(ex); |
|
|
BOOST_THROW_EXCEPTION(ex); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|