style: Remove unused whitespace

This commit is contained in:
MarcoFalke
2021-11-01 16:17:56 +01:00
parent 8c0bd871fc
commit faff051560
2 changed files with 3 additions and 5 deletions

View File

@ -95,10 +95,8 @@ static bool GetUTXOStats(CCoinsView* view, BlockManager& blockman, CCoinsStats&
assert(pcursor); assert(pcursor);
if (!pindex) { if (!pindex) {
{ LOCK(cs_main);
LOCK(cs_main); pindex = blockman.LookupBlockIndex(view->GetBestBlock());
pindex = blockman.LookupBlockIndex(view->GetBestBlock());
}
} }
stats.nHeight = Assert(pindex)->nHeight; stats.nHeight = Assert(pindex)->nHeight;
stats.hashBlock = pindex->GetBlockHash(); stats.hashBlock = pindex->GetBlockHash();

View File

@ -1242,7 +1242,7 @@ static RPCHelpMan gettxoutsetinfo()
ret.pushKV("hash_serialized_2", stats.hashSerialized.GetHex()); ret.pushKV("hash_serialized_2", stats.hashSerialized.GetHex());
} }
if (hash_type == CoinStatsHashType::MUHASH) { if (hash_type == CoinStatsHashType::MUHASH) {
ret.pushKV("muhash", stats.hashSerialized.GetHex()); ret.pushKV("muhash", stats.hashSerialized.GetHex());
} }
ret.pushKV("total_amount", ValueFromAmount(stats.nTotalAmount)); ret.pushKV("total_amount", ValueFromAmount(stats.nTotalAmount));
if (!stats.index_used) { if (!stats.index_used) {