From faff051560552d4405896e01920a18f698155a56 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 1 Nov 2021 16:17:56 +0100 Subject: [PATCH] style: Remove unused whitespace --- src/node/coinstats.cpp | 6 ++---- src/rpc/blockchain.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/node/coinstats.cpp b/src/node/coinstats.cpp index 67e497c218..639a579172 100644 --- a/src/node/coinstats.cpp +++ b/src/node/coinstats.cpp @@ -95,10 +95,8 @@ static bool GetUTXOStats(CCoinsView* view, BlockManager& blockman, CCoinsStats& assert(pcursor); if (!pindex) { - { - LOCK(cs_main); - pindex = blockman.LookupBlockIndex(view->GetBestBlock()); - } + LOCK(cs_main); + pindex = blockman.LookupBlockIndex(view->GetBestBlock()); } stats.nHeight = Assert(pindex)->nHeight; stats.hashBlock = pindex->GetBlockHash(); diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 050d9dd980..689c8751f3 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1242,7 +1242,7 @@ static RPCHelpMan gettxoutsetinfo() ret.pushKV("hash_serialized_2", stats.hashSerialized.GetHex()); } if (hash_type == CoinStatsHashType::MUHASH) { - ret.pushKV("muhash", stats.hashSerialized.GetHex()); + ret.pushKV("muhash", stats.hashSerialized.GetHex()); } ret.pushKV("total_amount", ValueFromAmount(stats.nTotalAmount)); if (!stats.index_used) {