Skip to content

Commit

Permalink
Fix typos and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gladcow committed Apr 4, 2018
1 parent c093912 commit 89b65bd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qa/rpc-tests/test_framework/mininode.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import dash_hash

BIP0031_VERSION = 60000
MY_VERSION = 70209 # current SHORT_IDS_BLOCKS_VERSION to support cmpct blocks?
MY_VERSION = 70209 # SHORT_IDS_BLOCKS_VERSION to support cmpct blocks
MY_SUBVERSION = b"/python-mininode-tester:0.0.3/"
MY_RELAY = 1 # from version 70001 onwards, fRelay should be appended to version messages (BIP37)

Expand Down
1 change: 0 additions & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,6 @@ void CConnman::ThreadOpenConnections()
if (nANow - addr.nLastTry < 600 && nTries < 30)
continue;


// only consider nodes missing relevant services after 40 failed attempts and only if less than half the outbound are up.
ServiceFlags nRequiredServices = nRelevantServices;
if (nTries >= 40 && nOutbound < (nMaxOutbound >> 1)) {
Expand Down
2 changes: 1 addition & 1 deletion src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2485,7 +2485,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
assert(pindexLast);
UpdateBlockAvailability(pfrom->GetId(), pindexLast->GetBlockHash());

if (nCount == MAX_HEADERS_RESULTS && pindexLast) {
if (nCount == MAX_HEADERS_RESULTS) {
// Headers message had its maximum size; the peer may have more headers.
// TODO: optimize: if pindexLast is an ancestor of chainActive.Tip or pindexBestHeader, continue
// from there instead.
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static const int FEEFILTER_VERSION = 99999; // disable for now (clarify deployme
//! DIP0001 was activated in this version
static const int DIP0001_PROTOCOL_VERSION = 70208;

//! shord-id-based block download starts with this version
//! short-id-based block download starts with this version
static const int SHORT_IDS_BLOCKS_VERSION = 70209;

#endif // BITCOIN_VERSION_H

0 comments on commit 89b65bd

Please sign in to comment.