aboutsummaryrefslogtreecommitdiff
path: root/src/addrman_impl.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-10-28 12:59:29 +0100
committerJohn Newbery <john@johnnewbery.com>2021-10-28 14:01:40 +0100
commit61ec0539b26a902a41a2602187a71f9dba3c6935 (patch)
tree6b0aa0d4674497d20b720a4fba9515aae851d6c0 /src/addrman_impl.h
parent2095df7b7bfcb9ab0c5710a93112f7f341e753c9 (diff)
downloadbitcoin-61ec0539b26a902a41a2602187a71f9dba3c6935.tar.xz
[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`
Diffstat (limited to 'src/addrman_impl.h')
-rw-r--r--src/addrman_impl.h4
1 files changed, 2 insertions, 2 deletions
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<CAddress> &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);