aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-12 18:05:54 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-10-09 14:29:05 +0300
commit4170b46544231e7cf1d64ac3baa314083be37502 (patch)
tree5d4324f5db9a1984224b581cdfa2bf908d9776c6 /src/net.h
parentbad16aff490dcf87722fbfe202a869fb24c734e1 (diff)
downloadbitcoin-4170b46544231e7cf1d64ac3baa314083be37502.tar.xz
p2p: Integrate DumpAnchors() and ReadAnchors() into CConnman
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index adeee1579a..7b7885f839 100644
--- a/src/net.h
+++ b/src/net.h
@@ -566,6 +566,12 @@ private:
/** Pointer to this node's banman. May be nullptr - check existence before dereferencing. */
BanMan* m_banman;
+ /**
+ * Addresses that were saved during the previous clean shutdown. We'll
+ * attempt to make block-relay-only connections to them.
+ */
+ std::vector<CAddress> m_anchors;
+
/** SipHasher seeds for deterministic randomness */
const uint64_t nSeed0, nSeed1;