aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.h
diff options
context:
space:
mode:
authorAntoine Riard <ariard@student.42.fr>2019-07-24 17:27:49 -0400
committerAntoine Riard <ariard@student.42.fr>2019-07-24 19:47:56 -0400
commit9bc8b28c1d26c28edf4bbc890be97c0ad7a73cb9 (patch)
treed2ac6d3dedad0d2773273ccaf838161840957cc5 /src/net_processing.h
parent0626b8cbdf0aa971500eb5613c7ab4096c496966 (diff)
refactor : use RelayTransaction in BroadcastTransaction utility
To do so, we also refactor RelayTransaction to take a txid instead of passing a tx
Diffstat (limited to 'src/net_processing.h')
-rw-r--r--src/net_processing.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net_processing.h b/src/net_processing.h
index dffc3f273f..1d26164b18 100644
--- a/src/net_processing.h
+++ b/src/net_processing.h
@@ -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