refactor : use RelayTransaction in BroadcastTransaction utility

To do so, we also refactor RelayTransaction to take a txid
instead of passing a tx
This commit is contained in:
Antoine Riard
2019-07-24 17:27:49 -04:00
parent 0626b8cbdf
commit 9bc8b28c1d
4 changed files with 13 additions and 12 deletions

View File

@@ -90,4 +90,7 @@ struct CNodeStateStats {
/** Get statistics from node state */
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats);
/** Relay transaction to every node */
void RelayTransaction(const uint256&, const CConnman& connman);
#endif // BITCOIN_NET_PROCESSING_H