aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-06-21 18:56:19 -0400
committerJohn Newbery <john@johnnewbery.com>2021-02-15 16:15:51 +0000
commit45dcf2266125c65d7f546bdb211a278bd090a284 (patch)
tree384028a852c66190b8f8b1cd5773b90e15880049 /src/net_processing.h
parentdd2646d12c172cb8899669af717c590483a17404 (diff)
downloadbitcoin-45dcf2266125c65d7f546bdb211a278bd090a284.tar.xz
[net processing] Move ping data fields to net processing
Diffstat (limited to 'src/net_processing.h')
-rw-r--r--src/net_processing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net_processing.h b/src/net_processing.h
index eaa3b142a8..d7be453df5 100644
--- a/src/net_processing.h
+++ b/src/net_processing.h
@@ -30,6 +30,7 @@ struct CNodeStateStats {
int nSyncHeight = -1;
int nCommonHeight = -1;
int m_starting_height = -1;
+ int64_t m_ping_wait_usec;
std::vector<int> vHeightInFlight;
};
@@ -47,6 +48,9 @@ public:
/** Whether this node ignores txs received over p2p. */
virtual bool IgnoresIncomingTxs() = 0;
+ /** Send ping message to all peers */
+ virtual void SendPings() = 0;
+
/** Set the best height */
virtual void SetBestHeight(int height) = 0;