style: Remove unused whitespace

This commit is contained in:
MarcoFalke committed 2021-12-17 10:39:39 +01:00
1 parent 8c0bd871fc
commit faff051560
2 files changed
+3 -5

No files matched your search

+2 -4
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();
+1 -1
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) {