From b0d1cbb8a1a940776f5d812f1c4ec13e90ef6d8c Mon Sep 17 00:00:00 2001 From: winsvega Date: Mon, 27 Apr 2015 21:07:55 +0300 Subject: [PATCH] total difficulty --- libethcore/BlockInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libethcore/BlockInfo.cpp b/libethcore/BlockInfo.cpp index 24fc1cb65..431f98bf8 100644 --- a/libethcore/BlockInfo.cpp +++ b/libethcore/BlockInfo.cpp @@ -212,9 +212,10 @@ void BlockInfo::verifyInternals(bytesConstRef _block) const if (transactionsRoot != t.root())*/ auto txList = root[1]; auto expectedRoot = trieRootOver(txList.itemCount(), [&](unsigned i){ return rlp(i); }, [&](unsigned i){ return txList[i].data(); }); + cnote << "expect trroot " << toString(expectedRoot); if (transactionsRoot != expectedRoot) BOOST_THROW_EXCEPTION(InvalidTransactionsHash() << HashMismatchError(expectedRoot, transactionsRoot)); - + cnote << "expect uncleh " << toString(sha3(root[2].data())); if (sha3Uncles != sha3(root[2].data())) BOOST_THROW_EXCEPTION(InvalidUnclesHash()); }