diff options
| author | Pieter Wuille <[email protected]> | 2016-12-01 13:25:43 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-12-01 13:34:49 -0800 |
| commit | ad826b3df9f763b49f1e3e3d50c4efdd438c7547 (patch) | |
| tree | 9c4323abee8e3a42c4cbdb7deb4ed0b62163678f /src/main.cpp | |
| parent | Merge #9253: Fix calculation of number of bound sockets to use (diff) | |
| parent | Make orphan parent fetching ask for witnesses. (diff) | |
| download | discoin-ad826b3df9f763b49f1e3e3d50c4efdd438c7547.tar.xz discoin-ad826b3df9f763b49f1e3e3d50c4efdd438c7547.zip | |
Merge #9188: Make orphan parent fetching ask for witnesses.
5b0150a Make orphan parent fetching ask for witnesses. (Gregory Maxwell)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 274bf6fdd..faf643b3c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5690,8 +5690,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, } } if (!fRejectedParents) { + uint32_t nFetchFlags = GetFetchFlags(pfrom, chainActive.Tip(), chainparams.GetConsensus()); BOOST_FOREACH(const CTxIn& txin, tx.vin) { - CInv _inv(MSG_TX, txin.prevout.hash); + CInv _inv(MSG_TX | nFetchFlags, txin.prevout.hash); pfrom->AddInventoryKnown(_inv); if (!AlreadyHave(_inv)) pfrom->AskFor(_inv); } |