diff --git a/src/net.h b/src/net.h index ec62e9770a252..7e9e88f95ab3a 100644 --- a/src/net.h +++ b/src/net.h @@ -607,18 +607,6 @@ class CNode // and in the order requested. std::vector vInventoryBlockToSend GUARDED_BY(cs_inventory); Mutex cs_inventory; - /** UNIX epoch time of the last block received from this peer that we had - * not yet seen (e.g. not already received from another peer), that passed - * preliminary validity checks and was saved to disk, even if we don't - * connect the block or it eventually fails connection. Used as an inbound - * peer eviction criterium in CConnman::AttemptToEvictConnection. */ - std::atomic nLastBlockTime{0}; - - /** UNIX epoch time of the last transaction received from this peer that we - * had not yet seen (e.g. not already received from another peer) and that - * was accepted into our mempool. Used as an inbound peer eviction criterium - * in CConnman::AttemptToEvictConnection. */ - std::atomic nLastTXTime{0}; struct TxRelay { mutable RecursiveMutex cs_filter; @@ -651,6 +639,19 @@ class CNode // Used for headers announcements - unfiltered blocks to relay std::vector vBlockHashesToAnnounce GUARDED_BY(cs_inventory); + /** UNIX epoch time of the last block received from this peer that we had + * not yet seen (e.g. not already received from another peer), that passed + * preliminary validity checks and was saved to disk, even if we don't + * connect the block or it eventually fails connection. Used as an inbound + * peer eviction criterium in CConnman::AttemptToEvictConnection. */ + std::atomic nLastBlockTime{0}; + + /** UNIX epoch time of the last transaction received from this peer that we + * had not yet seen (e.g. not already received from another peer) and that + * was accepted into our mempool. Used as an inbound peer eviction criterium + * in CConnman::AttemptToEvictConnection. */ + std::atomic nLastTXTime{0}; + // Ping time measurement: // The pong reply we're expecting, or 0 if no pong expected. std::atomic nPingNonceSent{0};