From 61ec0539b26a902a41a2602187a71f9dba3c6935 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Thu, 28 Oct 2021 12:59:29 +0100 Subject: [MOVEONLY] reorder functions in addrman_impl.h and addrman.cpp Keep the internal {Function}_() functions grouped together. Review with `git diff --color-moved=dimmed-zebra` --- src/addrman_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/addrman_impl.h') diff --git a/src/addrman_impl.h b/src/addrman_impl.h index c8eb73027e..e7a9f0e76f 100644 --- a/src/addrman_impl.h +++ b/src/addrman_impl.h @@ -242,12 +242,12 @@ private: //! Move an entry from the "new" table(s) to the "tried" table void MakeTried(AddrInfo& info, int nId) EXCLUSIVE_LOCKS_REQUIRED(cs); - void Good_(const CService& addr, bool test_before_evict, int64_t time) EXCLUSIVE_LOCKS_REQUIRED(cs); - /** Attempt to add a single address to addrman's new table. * @see AddrMan::Add() for parameters. */ bool AddSingle(const CAddress& addr, const CNetAddr& source, int64_t nTimePenalty) EXCLUSIVE_LOCKS_REQUIRED(cs); + void Good_(const CService& addr, bool test_before_evict, int64_t time) EXCLUSIVE_LOCKS_REQUIRED(cs); + bool Add_(const std::vector &vAddr, const CNetAddr& source, int64_t nTimePenalty) EXCLUSIVE_LOCKS_REQUIRED(cs); void Attempt_(const CService& addr, bool fCountFailure, int64_t nTime) EXCLUSIVE_LOCKS_REQUIRED(cs); -- cgit v1.2.3