Skip to content

Commit 48efec8

Browse files
committed
Fix some minor compact block issues that came up in review
1 parent ccd06b9 commit 48efec8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4613,7 +4613,7 @@ void static ProcessGetData(CNode* pfrom, const Consensus::Params& consensusParam
46134613
// Track requests for our stuff.
46144614
GetMainSignals().Inventory(inv.hash);
46154615

4616-
if (inv.type == MSG_BLOCK || inv.type == MSG_FILTERED_BLOCK)
4616+
if (inv.type == MSG_BLOCK || inv.type == MSG_FILTERED_BLOCK || inv.type == MSG_CMPCT_BLOCK)
46174617
break;
46184618
}
46194619
}
@@ -5077,8 +5077,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
50775077
return true;
50785078
}
50795079

5080-
if (it->second->nHeight < chainActive.Height() - 10) {
5081-
LogPrint("net", "Peer %d sent us a getblocktxn for a block > 10 deep", pfrom->id);
5080+
if (it->second->nHeight < chainActive.Height() - 15) {
5081+
LogPrint("net", "Peer %d sent us a getblocktxn for a block > 15 deep", pfrom->id);
50825082
return true;
50835083
}
50845084

0 commit comments

Comments
 (0)