Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 1,774 Lines • ▼ Show 20 Lines | static bool AlreadyHave(const CInv &inv, const CTxMemPool &mempool) | ||||
return true; | return true; | ||||
} | } | ||||
void RelayTransaction(const TxId &txid, const CConnman &connman) { | void RelayTransaction(const TxId &txid, const CConnman &connman) { | ||||
connman.ForEachNode( | connman.ForEachNode( | ||||
[&txid](CNode *pnode) { pnode->PushTxInventory(txid); }); | [&txid](CNode *pnode) { pnode->PushTxInventory(txid); }); | ||||
} | } | ||||
void RelayProof(const avalanche::ProofId &proofid, const CConnman &connman) { | |||||
connman.ForEachNode( | |||||
deadalnix: IIRC, this send only thing to outbound peers, no? Is that the set of peer that is desired? | |||||
[&proofid](CNode *pnode) { pnode->PushProofInventory(proofid); }); | |||||
} | |||||
static void RelayAddress(const CAddress &addr, bool fReachable, | static void RelayAddress(const CAddress &addr, bool fReachable, | ||||
const CConnman &connman) { | const CConnman &connman) { | ||||
// Limited relaying of addresses outside our network(s) | // Limited relaying of addresses outside our network(s) | ||||
unsigned int nRelayNodes = fReachable ? 2 : 1; | unsigned int nRelayNodes = fReachable ? 2 : 1; | ||||
// Relay to a limited number of other nodes. | // Relay to a limited number of other nodes. | ||||
// Use deterministic randomness to send to the same nodes for 24 hours at a | // Use deterministic randomness to send to the same nodes for 24 hours at a | ||||
// time so the m_addr_knowns of the chosen nodes prevent repeats | // time so the m_addr_knowns of the chosen nodes prevent repeats | ||||
▲ Show 20 Lines • Show All 3,856 Lines • Show Last 20 Lines |
IIRC, this send only thing to outbound peers, no? Is that the set of peer that is desired? Maybe that is fine for now.