diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-11-01 16:17:56 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-12-17 10:39:39 +0100 |
commit | faff051560552d4405896e01920a18f698155a56 (patch) | |
tree | 1343cc6f4022be949f383f400e3ba1e71c6fa244 | |
parent | 8c0bd871fcf6c5ff5851ccb18a7bc7554a0484b0 (diff) | |
download | bitcoin-faff051560552d4405896e01920a18f698155a56.tar.xz |
style: Remove unused whitespace
-rw-r--r-- | src/node/coinstats.cpp | 6 | ||||
-rw-r--r-- | 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) { |