@@ -2661,7 +2661,7 @@ void ProcessMessage(
2661
2661
best_block = &inv.hash ;
2662
2662
}
2663
2663
} else {
2664
- pfrom.AddInventoryKnown (inv.hash );
2664
+ pfrom.AddKnownTx (inv.hash );
2665
2665
if (fBlocksOnly ) {
2666
2666
LogPrint (BCLog::NET, " transaction (%s) inv sent in violation of protocol, disconnecting peer=%d\n " , inv.hash .ToString (), pfrom.GetId ());
2667
2667
pfrom.fDisconnect = true ;
@@ -2908,14 +2908,14 @@ void ProcessMessage(
2908
2908
CNodeState* nodestate = State (pfrom.GetId ());
2909
2909
2910
2910
const uint256& hash = nodestate->m_wtxid_relay ? wtxid : txid;
2911
- pfrom.AddInventoryKnown (hash);
2911
+ pfrom.AddKnownTx (hash);
2912
2912
if (nodestate->m_wtxid_relay && txid != wtxid) {
2913
2913
// Insert txid into filterInventoryKnown, even for
2914
2914
// wtxidrelay peers. This prevents re-adding of
2915
2915
// unconfirmed parents to the recently_announced
2916
2916
// filter, when a child tx is requested. See
2917
2917
// ProcessGetData().
2918
- pfrom.AddInventoryKnown (txid);
2918
+ pfrom.AddKnownTx (txid);
2919
2919
}
2920
2920
2921
2921
TxValidationState state;
@@ -2982,7 +2982,7 @@ void ProcessMessage(
2982
2982
// Eventually we should replace this with an improved
2983
2983
// protocol for getting all unconfirmed parents.
2984
2984
CInv _inv (MSG_TX | nFetchFlags, txin.prevout .hash );
2985
- pfrom.AddInventoryKnown (txin.prevout .hash );
2985
+ pfrom.AddKnownTx (txin.prevout .hash );
2986
2986
if (!AlreadyHave (_inv, mempool)) RequestTx (State (pfrom.GetId ()), _inv.hash , current_time);
2987
2987
}
2988
2988
}
0 commit comments