mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Fix some typos
This commit is contained in:
@@ -62,7 +62,7 @@ ReadStatus PartiallyDownloadedBlock::InitData(const CBlockHeaderAndShortTxIDs& c
|
||||
if (cmpctblock.prefilledtxn[i].tx->IsNull())
|
||||
return READ_STATUS_INVALID;
|
||||
|
||||
lastprefilledindex += cmpctblock.prefilledtxn[i].index + 1; //index is a uint16_t, so cant overflow here
|
||||
lastprefilledindex += cmpctblock.prefilledtxn[i].index + 1; //index is a uint16_t, so can't overflow here
|
||||
if (lastprefilledindex > std::numeric_limits<uint16_t>::max())
|
||||
return READ_STATUS_INVALID;
|
||||
if ((uint32_t)lastprefilledindex > cmpctblock.shorttxids.size() + i) {
|
||||
|
||||
Reference in New Issue
Block a user