Skip to content

Commit ad826b3

Browse files
committed
Merge #9188: Make orphan parent fetching ask for witnesses.
5b0150a Make orphan parent fetching ask for witnesses. (Gregory Maxwell)
2 parents c1a5227 + 5b0150a commit ad826b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5690,8 +5690,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
56905690
}
56915691
}
56925692
if (!fRejectedParents) {
5693+
uint32_t nFetchFlags = GetFetchFlags(pfrom, chainActive.Tip(), chainparams.GetConsensus());
56935694
BOOST_FOREACH(const CTxIn& txin, tx.vin) {
5694-
CInv _inv(MSG_TX, txin.prevout.hash);
5695+
CInv _inv(MSG_TX | nFetchFlags, txin.prevout.hash);
56955696
pfrom->AddInventoryKnown(_inv);
56965697
if (!AlreadyHave(_inv)) pfrom->AskFor(_inv);
56975698
}

0 commit comments

Comments
 (0)