aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorTomo Ueda <[email protected]>2021-09-02 12:55:18 -0700
committerTomo Ueda <[email protected]>2021-09-02 12:55:18 -0700
commite64843ced509c24f783276d4cc0f2f26c9d527f2 (patch)
tree7956d4ea416c5b3a531dbc6f356e1c9a643d9690 /src/net_processing.cpp
parentreally s/doge/dis/g this time (diff)
downloaddiscoin-e64843ced509c24f783276d4cc0f2f26c9d527f2.tar.xz
discoin-e64843ced509c24f783276d4cc0f2f26c9d527f2.zip
really s/Doge/Dis/g this time
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index dee17a733..d91bbe838 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -34,7 +34,7 @@
#include <boost/thread.hpp>
#if defined(NDEBUG)
-# error "Dogecoin cannot be compiled without assertions."
+# error "Discoin cannot be compiled without assertions."
#endif
std::atomic<int64_t> nTimeBestReceived(0); // Used only to inform the wallet of when we last received a block
@@ -731,7 +731,7 @@ void Misbehaving(NodeId pnode, int howmuch)
}
-// Dogecoin - 1.14 specific fix: do not request headers from a peer we are
+// Discoin - 1.14 specific fix: do not request headers from a peer we are
// already requesting headers from, unless forced.
void RequestHeadersFrom(CNode* pto, CConnman& connman, const CBlockIndex* pindex, uint256 untilHash, bool fforceQuery)
{
@@ -1579,7 +1579,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
// fell back to inv we probably have a reorg which we should get the headers for first,
// we now only provide a getheaders response here. When we receive the headers, we will
// then ask for the blocks we need.
- // Dogecoin: We force this check, in case we're only connected to nodes that send invs
+ // Discoin: We force this check, in case we're only connected to nodes that send invs
RequestHeadersFrom(pfrom, connman, pindexBestHeader, inv.hash, true);
LogPrint("net", "getheaders (%d) %s to peer=%d\n", pindexBestHeader->nHeight, inv.hash.ToString(), pfrom->id);
}
@@ -2281,7 +2281,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
// nUnconnectingHeaders gets reset back to 0.
if (mapBlockIndex.find(headers[0].hashPrevBlock) == mapBlockIndex.end() && nCount < MAX_BLOCKS_TO_ANNOUNCE) {
nodestate->nUnconnectingHeaders++;
- // Dogecoin: allow a single getheaders query before triggering DoS
+ // Discoin: allow a single getheaders query before triggering DoS
RequestHeadersFrom(pfrom, connman, pindexBestHeader, uint256(), true);
LogPrint("net", "received header %s: missing prev block %s, sending getheaders (%d) to end (peer=%d, nUnconnectingHeaders=%d)\n",
headers[0].GetHash().ToString(),
@@ -2337,7 +2337,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
// TODO: optimize: if pindexLast is an ancestor of chainActive.Tip or pindexBestHeader, continue
// from there instead.
//
- // Dogecoin: do not allow multiple getheader queries in parallel at
+ // Discoin: do not allow multiple getheader queries in parallel at
// this point - makes sure that any parallel queries will end here,
// preventing "getheaders" spam.
LogPrint("net", "more getheaders (%d) to end to peer=%d (startheight:%d)\n", pindexLast->nHeight, pfrom->id, pfrom->nStartingHeight);
@@ -2940,7 +2940,7 @@ bool SendMessages(CNode* pto, CConnman& connman, const std::atomic<bool>& interr
the peer's known best block. This wouldn't be possible
if we requested starting at pindexBestHeader and
got back an empty response. */
- // Dogecoin: make sure that if we are already processing an inv
+ // Discoin: make sure that if we are already processing an inv
// or header message from this peer caused by a new block being
// mined at chaintip, we do not send another getheaders request
if (pindexStart->pprev)