aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <[email protected]>2020-10-16 14:05:09 -0400
committerSuhas Daftuar <[email protected]>2020-10-27 11:15:21 -0400
commit16d9bfc4172b4f6ce24a3cd1a1cfa3933cd26751 (patch)
tree78ab57787329a7b58c7b80a38384bdb3856aa067 /src/net_processing.cpp
parentRefactor test for existing peer connection into own function (diff)
downloaddiscoin-16d9bfc4172b4f6ce24a3cd1a1cfa3933cd26751.tar.xz
discoin-16d9bfc4172b4f6ce24a3cd1a1cfa3933cd26751.zip
Avoid test-before-evict evictions of current peers
Outbound peer logic prevents connecting to addresses that we're already connected to, so prevent inadvertent eviction of current peers via test-before-evict by checking this condition and marking current peer's addresses as Good(). Co-authored-by: John Newbery <[email protected]>
Diffstat (limited to 'src/net_processing.cpp')
0 files changed, 0 insertions, 0 deletions