diff options
author | Gregory Maxwell <greg@xiph.org> | 2016-05-22 05:55:15 +0000 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2016-06-15 20:19:07 +0000 |
commit | 5d0ca81f7422b7eac0a5129c6fbccad77e36b85d (patch) | |
tree | e8ed6f0511a9b837e047b5343f7fabf7ca2f3592 /src/net.h | |
parent | 32b7294177e50cba8aa26ae0689d4b24f3c10df3 (diff) |
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.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -416,6 +416,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; |