aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-01-29 08:19:27 -0800
committerAmiti Uttarwar <amiti@uttarwar.org>2020-04-23 14:42:25 -0700
commite25e42f20a3aa39651fbc1f9fa3df1a49f1f5868 (patch)
treea12777257a609b794d8922379d5f1dc6df5ea1f7 /src/net_processing.h
parent7e93eecce3bc5a1b7bb0284e06f9e2e69454f5ba (diff)
downloadbitcoin-e25e42f20a3aa39651fbc1f9fa3df1a49f1f5868.tar.xz
[p2p] Reattempt initial send of unbroadcast transactions
Every 10-15 minutes, the scheduler kicks off a job that queues unbroadcast transactions onto each node.
Diffstat (limited to 'src/net_processing.h')
-rw-r--r--src/net_processing.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net_processing.h b/src/net_processing.h
index 65e3963c41..d02678c7c3 100644
--- a/src/net_processing.h
+++ b/src/net_processing.h
@@ -75,6 +75,8 @@ public:
void CheckForStaleTipAndEvictPeers(const Consensus::Params &consensusParams);
/** If we have extra outbound peers, try to disconnect the one with the oldest block announcement */
void EvictExtraOutboundPeers(int64_t time_in_seconds) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
+ /** Retrieve unbroadcast transactions from the mempool and reattempt sending to peers */
+ void ReattemptInitialBroadcast(CScheduler& scheduler) const;
private:
int64_t m_stale_tip_check_time; //!< Next time to check for stale tip