mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
scripted-diff: remove ResetI2PPorts() (revert e0a2b390c1)
`CAddrMan::ResetI2PPorts()` was temporary. Remove it:
* it has partially achieved its goal: probably ran on about half of the
I2P nodes
* it is hackish, deemed risky and two bugs where found in it
https://github.com/bitcoin/bitcoin/issues/22467
https://github.com/bitcoin/bitcoin/issues/22470
-BEGIN VERIFY SCRIPT-
git show e0a2b390c1 |git apply -R
-END VERIFY SCRIPT-
Fixes https://github.com/bitcoin/bitcoin/issues/22467
Fixes https://github.com/bitcoin/bitcoin/issues/22470
This commit is contained in:
@@ -452,8 +452,6 @@ public:
|
||||
|
||||
RemoveInvalid();
|
||||
|
||||
ResetI2PPorts();
|
||||
|
||||
Check();
|
||||
}
|
||||
|
||||
@@ -769,14 +767,6 @@ 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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user