Fix some typos

This commit is contained in:
Jack Grigg 2020-08-13 21:38:15 +01:00 committed by Kris Nuttycombe
parent 51ae7a0ae5
commit 1eb7bbc6be
3 changed files with 4 additions and 4 deletions

View File

@ -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.
'''

View File

@ -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);

View File

@ -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();
};