diff options
author | Carl Dong <contact@carldong.me> | 2022-03-18 12:31:30 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-04-19 14:34:56 -0400 |
commit | 73eedaaacc3b5f2dd791997109f2f5312a894336 (patch) | |
tree | 5732f25f2ecfe993741658b6537aa1382f1d1787 | |
parent | 0d567daf23c9fcb2d95b38913ee45a8b0ba3b027 (diff) | |
download | bitcoin-73eedaaacc3b5f2dd791997109f2f5312a894336.tar.xz |
style-only: Miscellaneous whitespace changes
...of touched lines and surrounding
-rw-r--r-- | src/net_processing.cpp | 8 | ||||
-rw-r--r-- | src/rpc/blockchain.cpp | 20 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index d002ec20fc..7624874cc1 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2175,10 +2175,10 @@ void PeerManagerImpl::ProcessHeadersMessage(CNode& pfrom, const Peer& peer, nodestate->nUnconnectingHeaders++; m_connman.PushMessage(&pfrom, msgMaker.Make(NetMsgType::GETHEADERS, m_chainman.ActiveChain().GetLocator(m_chainman.pindexBestHeader), uint256())); LogPrint(BCLog::NET, "received header %s: missing prev block %s, sending getheaders (%d) to end (peer=%d, nUnconnectingHeaders=%d)\n", - headers[0].GetHash().ToString(), - headers[0].hashPrevBlock.ToString(), - m_chainman.pindexBestHeader->nHeight, - pfrom.GetId(), nodestate->nUnconnectingHeaders); + headers[0].GetHash().ToString(), + headers[0].hashPrevBlock.ToString(), + m_chainman.pindexBestHeader->nHeight, + pfrom.GetId(), nodestate->nUnconnectingHeaders); // Set hashLastUnknownBlock for this peer, so that if we // eventually get the headers - even from a different peer - // we can use this peer to download. diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 1c8718ffba..ae6c8b9e8b 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1205,18 +1205,18 @@ RPCHelpMan getblockchaininfo() CHECK_NONFATAL(tip); const int height = tip->nHeight; UniValue obj(UniValue::VOBJ); - obj.pushKV("chain", Params().NetworkIDString()); - obj.pushKV("blocks", height); + obj.pushKV("chain", Params().NetworkIDString()); + obj.pushKV("blocks", height); obj.pushKV("headers", chainman.pindexBestHeader ? chainman.pindexBestHeader->nHeight : -1); - obj.pushKV("bestblockhash", tip->GetBlockHash().GetHex()); - obj.pushKV("difficulty", (double)GetDifficulty(tip)); - obj.pushKV("time", (int64_t)tip->nTime); - obj.pushKV("mediantime", (int64_t)tip->GetMedianTimePast()); - obj.pushKV("verificationprogress", GuessVerificationProgress(Params().TxData(), tip)); - obj.pushKV("initialblockdownload", active_chainstate.IsInitialBlockDownload()); - obj.pushKV("chainwork", tip->nChainWork.GetHex()); + obj.pushKV("bestblockhash", tip->GetBlockHash().GetHex()); + obj.pushKV("difficulty", (double)GetDifficulty(tip)); + obj.pushKV("time", (int64_t)tip->nTime); + obj.pushKV("mediantime", (int64_t)tip->GetMedianTimePast()); + obj.pushKV("verificationprogress", GuessVerificationProgress(Params().TxData(), tip)); + obj.pushKV("initialblockdownload", active_chainstate.IsInitialBlockDownload()); + obj.pushKV("chainwork", tip->nChainWork.GetHex()); obj.pushKV("size_on_disk", chainman.m_blockman.CalculateCurrentUsage()); - obj.pushKV("pruned", node::fPruneMode); + obj.pushKV("pruned", node::fPruneMode); if (node::fPruneMode) { const CBlockIndex* block = tip; CHECK_NONFATAL(block); |