aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-06-16 11:03:16 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-06-16 11:03:52 +0200
commite4bb4a85a551367d9479301bbad1b089781e494d (patch)
tree6a0c3ded67d9446278197a49c354fb1eba9b7512 /src/net.h
parent0a64777b909e7c29ae69a3fcf4d4e859ff375dec (diff)
parent6ee7f05622c32431a9815a96b31a6a65a821fdcc (diff)
downloadbitcoin-e4bb4a85a551367d9479301bbad1b089781e494d.tar.xz
Merge #8084: Add recently accepted blocks and txn to AttemptToEvictConnection.
6ee7f05 Allow disconnecting a netgroup with only one member in eviction. (Gregory Maxwell) 5d0ca81 Add recently accepted blocks and txn to AttemptToEvictConnection. (Gregory Maxwell)
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 2aaca4888f..c7bc849177 100644
--- a/src/net.h
+++ b/src/net.h
@@ -419,6 +419,11 @@ public:
// Last time a "MEMPOOL" request was serviced.
std::atomic<int64_t> timeLastMempoolReq;
+
+ // Block and TXN accept times
+ std::atomic<int64_t> nLastBlockTime;
+ std::atomic<int64_t> nLastTXTime;
+
// Ping time measurement:
// The pong reply we're expecting, or 0 if no pong expected.
uint64_t nPingNonceSent;