net_processing: rename RelayTransaction() to better describe what it does

Rename `PeerManager::RelayTransaction()` to
`PeerManager::InitiateTxBroadcastToAll()`. The transaction is not
relayed when the method returns. It is only enqueued for a possible
broadcasting at a later time. Also, there will be another method which
only does so to Tor or I2P peers.
This commit is contained in:
Vasil Dimov
2023-12-20 15:32:17 +01:00
parent bb49d26032
commit 95c051e210
3 changed files with 13 additions and 8 deletions

View File

@@ -133,7 +133,7 @@ TransactionError BroadcastTransaction(NodeContext& node,
case TxBroadcast::MEMPOOL_NO_BROADCAST:
break;
case TxBroadcast::MEMPOOL_AND_BROADCAST_TO_ALL:
node.peerman->RelayTransaction(txid, wtxid);
node.peerman->InitiateTxBroadcastToAll(txid, wtxid);
break;
}