aboutsummaryrefslogtreecommitdiff
path: root/SECURITY.md
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2023-01-06 11:23:46 +0100
committerfanquake <fanquake@gmail.com>2023-02-27 13:59:51 +0000
commit5027e93b6a1e5a5c87b9450c60e2a4572eb32653 (patch)
tree7f3556a8716e690a1a58b822f752dbf54467b668 /SECURITY.md
parenta62c541ae8a579d19b8fc55bbb922f0939ab6110 (diff)
downloadbitcoin-5027e93b6a1e5a5c87b9450c60e2a4572eb32653.tar.xz
i2p: reuse created I2P sessions if not used
In the case of `i2pacceptincoming=0` we use transient addresses (destinations) for ourselves for each outbound connection. It may happen that we * create the session (and thus our address/destination too) * fail to connect to the particular peer (e.g. if they are offline) * dispose the unused session. This puts unnecessary load on the I2P network because session creation is not cheap. Is exaggerated if `onlynet=i2p` is used in which case we will be trying to connect to I2P peers more often. To help with this, save the created but unused sessions and pick them later instead of creating new ones. Alleviates: https://github.com/bitcoin/bitcoin/issues/26754 Github-Pull: #26837 Rebased-From: b906b64eb76643feaede1da5987a0c4d466c581b
Diffstat (limited to 'SECURITY.md')
0 files changed, 0 insertions, 0 deletions