diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index c7f4f7e10..ee17a2be3 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -107,8 +107,8 @@ Main::Main(QWidget *parent) : #endif m_servers.append(QString::fromStdString(Host::pocHost() + ":30303")); - cerr << "State root: " << BlockChain::genesis().stateRoot << endl; - cerr << "Block Hash: " << sha3(BlockChain::createGenesisBlock()) << endl; + cerr << "State root: " << BlockChain::genesis().stateRoot << endl; + cerr << "Block Hash: " << sha3(BlockChain::createGenesisBlock()) << endl; auto block = BlockChain::createGenesisBlock(); cerr << "Block RLP: " << RLP(block) << endl; cerr << "Block Hex: " << toHex(BlockChain::createGenesisBlock()) << endl; diff --git a/libdevcrypto/TrieDB.h b/libdevcrypto/TrieDB.h index 68b819404..a8de703eb 100644 --- a/libdevcrypto/TrieDB.h +++ b/libdevcrypto/TrieDB.h @@ -552,7 +552,7 @@ template bytes GenericTrieDB::mergeAt(RLP const& _orig, NibbleSli auto sh = _k.shared(k); // std::cout << _k << " sh " << k << " = " << sh << std::endl; - if (sh) + if (sh) { // shared stuff - cleve at disagreement. auto cleved = cleve(_orig, sh); @@ -691,7 +691,7 @@ template bytes GenericTrieDB::deleteAt(RLP const& _orig, NibbleSl byte used = uniqueInUse(_orig, 16); if (used != 255) - if (isTwoItemNode(_orig[used])) + if (isTwoItemNode(_orig[used])) { auto merged = merge(_orig, used); return graft(RLP(merged)); @@ -730,7 +730,7 @@ template bytes GenericTrieDB::deleteAt(RLP const& _orig, NibbleSl return r.out(); // yes; merge - if (isTwoItemNode(rlp[used])) + if (isTwoItemNode(rlp[used])) { auto merged = merge(rlp, used); return graft(RLP(merged));