From 1eb7bbc6bedc38fef1a83e2550dc77449434101d Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Thu, 13 Aug 2020 21:38:15 +0100 Subject: [PATCH] Fix some typos --- qa/rpc-tests/maxuploadtarget.py | 2 +- src/net.cpp | 2 +- src/net.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qa/rpc-tests/maxuploadtarget.py b/qa/rpc-tests/maxuploadtarget.py index 4408786b7..bb4f97612 100755 --- a/qa/rpc-tests/maxuploadtarget.py +++ b/qa/rpc-tests/maxuploadtarget.py @@ -15,7 +15,7 @@ Test behavior of -maxuploadtarget. * Verify that getdata requests for old blocks (>1week) are dropped if uploadtarget has been reached. -* Verify that getdata requests for recent blocks are respecteved even +* Verify that getdata requests for recent blocks are respected even if uploadtarget has been reached. * Verify that the upload counters are reset after 24 hours. ''' diff --git a/src/net.cpp b/src/net.cpp index 111ec6e46..803976046 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2077,7 +2077,7 @@ bool CNode::OutboundTargetReached(uint64_t targetSpacing, bool historicalBlockSe if (historicalBlockServingLimit) { - // keep a large enought buffer to at least relay each block once + // keep a large enough buffer to at least relay each block once uint64_t timeLeftInCycle = GetMaxOutboundTimeLeftInCycle(); uint64_t buffer = timeLeftInCycle / targetSpacing * MAX_BLOCK_SIZE; return (buffer >= nMaxOutboundLimit || nMaxOutboundTotalBytesSentInCycle >= nMaxOutboundLimit - buffer); diff --git a/src/net.h b/src/net.h index d2e2c3c70..7709e2bb7 100644 --- a/src/net.h +++ b/src/net.h @@ -691,8 +691,8 @@ public: // in case of no limit, it will always response 0 static uint64_t GetOutboundTargetBytesLeft(); - //!response the time in second left in the current max outbound cycle - // in case of no limit, it will always response 0 + //!response the time in seconds left in the current max outbound cycle + // in case of no limit, it will always respond with 0 static uint64_t GetMaxOutboundTimeLeftInCycle(); };