mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-02 11:09:36 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user