diff options
Diffstat (limited to 'src/addrman.h')
-rw-r--r-- | src/addrman.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/addrman.h b/src/addrman.h index c2f425f2fa..2a5c6c06b4 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -452,6 +452,8 @@ public: RemoveInvalid(); + ResetI2PPorts(); + Check(); } @@ -767,6 +769,14 @@ private: //! Remove invalid addresses. void RemoveInvalid() EXCLUSIVE_LOCKS_REQUIRED(cs); + /** + * Reset the ports of I2P peers to 0. + * This is needed as a temporary measure because now we enforce port 0 and + * only connect to I2P hosts if the port is 0, but in the early days some + * I2P addresses with port 8333 were rumoured and persisted into addrmans. + */ + void ResetI2PPorts() EXCLUSIVE_LOCKS_REQUIRED(cs); + friend class CAddrManTest; }; |