From 5d0ca81f7422b7eac0a5129c6fbccad77e36b85d Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Sun, 22 May 2016 05:55:15 +0000 Subject: Add recently accepted blocks and txn to AttemptToEvictConnection. This protects any not-already-protected peers who were the most recent four to relay transactions and most recent four to send blocks to us. --- src/net.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index 5c1f7e3e89..2f96c58e30 100644 --- a/src/net.h +++ b/src/net.h @@ -416,6 +416,11 @@ public: // Last time a "MEMPOOL" request was serviced. std::atomic timeLastMempoolReq; + + // Block and TXN accept times + std::atomic nLastBlockTime; + std::atomic nLastTXTime; + // Ping time measurement: // The pong reply we're expecting, or 0 if no pong expected. uint64_t nPingNonceSent; -- cgit v1.2.3