aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2020-02-26 13:36:35 -0500
committerSuhas Daftuar <sdaftuar@gmail.com>2020-07-19 02:10:42 -0400
commitdd78d1d641178b473ab1156b71a837b9e686792b (patch)
treecfb5148d1ee5abc2bbf12e751c09f5dc27399426 /src/net_processing.cpp
parent4eb515574e1012bc8ea5dafc3042dcdf4c766f26 (diff)
downloadbitcoin-dd78d1d641178b473ab1156b71a837b9e686792b.tar.xz
Rename AddInventoryKnown() to AddKnownTx()
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index d2ac86ea49..7822e9c0ad 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -2661,7 +2661,7 @@ void ProcessMessage(
best_block = &inv.hash;
}
} else {
- pfrom.AddInventoryKnown(inv.hash);
+ pfrom.AddKnownTx(inv.hash);
if (fBlocksOnly) {
LogPrint(BCLog::NET, "transaction (%s) inv sent in violation of protocol, disconnecting peer=%d\n", inv.hash.ToString(), pfrom.GetId());
pfrom.fDisconnect = true;
@@ -2908,14 +2908,14 @@ void ProcessMessage(
CNodeState* nodestate = State(pfrom.GetId());
const uint256& hash = nodestate->m_wtxid_relay ? wtxid : txid;
- pfrom.AddInventoryKnown(hash);
+ pfrom.AddKnownTx(hash);
if (nodestate->m_wtxid_relay && txid != wtxid) {
// Insert txid into filterInventoryKnown, even for
// wtxidrelay peers. This prevents re-adding of
// unconfirmed parents to the recently_announced
// filter, when a child tx is requested. See
// ProcessGetData().
- pfrom.AddInventoryKnown(txid);
+ pfrom.AddKnownTx(txid);
}
TxValidationState state;
@@ -2982,7 +2982,7 @@ void ProcessMessage(
// Eventually we should replace this with an improved
// protocol for getting all unconfirmed parents.
CInv _inv(MSG_TX | nFetchFlags, txin.prevout.hash);
- pfrom.AddInventoryKnown(txin.prevout.hash);
+ pfrom.AddKnownTx(txin.prevout.hash);
if (!AlreadyHave(_inv, mempool)) RequestTx(State(pfrom.GetId()), _inv.hash, current_time);
}
}