Skip to content

Commit dd78d1d

Browse files
committed
Rename AddInventoryKnown() to AddKnownTx()
1 parent 4eb5155 commit dd78d1d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ class CNode
965965
}
966966

967967

968-
void AddInventoryKnown(const uint256& hash)
968+
void AddKnownTx(const uint256& hash)
969969
{
970970
if (m_tx_relay != nullptr) {
971971
LOCK(m_tx_relay->cs_tx_inventory);

src/net_processing.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,7 +2661,7 @@ void ProcessMessage(
26612661
best_block = &inv.hash;
26622662
}
26632663
} else {
2664-
pfrom.AddInventoryKnown(inv.hash);
2664+
pfrom.AddKnownTx(inv.hash);
26652665
if (fBlocksOnly) {
26662666
LogPrint(BCLog::NET, "transaction (%s) inv sent in violation of protocol, disconnecting peer=%d\n", inv.hash.ToString(), pfrom.GetId());
26672667
pfrom.fDisconnect = true;
@@ -2908,14 +2908,14 @@ void ProcessMessage(
29082908
CNodeState* nodestate = State(pfrom.GetId());
29092909

29102910
const uint256& hash = nodestate->m_wtxid_relay ? wtxid : txid;
2911-
pfrom.AddInventoryKnown(hash);
2911+
pfrom.AddKnownTx(hash);
29122912
if (nodestate->m_wtxid_relay && txid != wtxid) {
29132913
// Insert txid into filterInventoryKnown, even for
29142914
// wtxidrelay peers. This prevents re-adding of
29152915
// unconfirmed parents to the recently_announced
29162916
// filter, when a child tx is requested. See
29172917
// ProcessGetData().
2918-
pfrom.AddInventoryKnown(txid);
2918+
pfrom.AddKnownTx(txid);
29192919
}
29202920

29212921
TxValidationState state;
@@ -2982,7 +2982,7 @@ void ProcessMessage(
29822982
// Eventually we should replace this with an improved
29832983
// protocol for getting all unconfirmed parents.
29842984
CInv _inv(MSG_TX | nFetchFlags, txin.prevout.hash);
2985-
pfrom.AddInventoryKnown(txin.prevout.hash);
2985+
pfrom.AddKnownTx(txin.prevout.hash);
29862986
if (!AlreadyHave(_inv, mempool)) RequestTx(State(pfrom.GetId()), _inv.hash, current_time);
29872987
}
29882988
}

0 commit comments

Comments
 (0)