aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2012-08-28 22:04:38 -0400
committerGregory Maxwell <[email protected]>2012-08-28 22:04:38 -0400
commit6a60c64c6b4c6a8095e12b515fc7e30eedfab5ab (patch)
tree43dbceb1c0c4102c8275d96a70a53af698bc704e /src/netbase.cpp
parentDon't force IRC off if not listening, do force it off if IPv4 is off. (diff)
downloaddiscoin-6a60c64c6b4c6a8095e12b515fc7e30eedfab5ab.tar.xz
discoin-6a60c64c6b4c6a8095e12b515fc7e30eedfab5ab.zip
Don't retry a failing IRC nickname forever.
If our IRC nick is in use (because some other node thinks it has the same address we think we have) don't fruitlessly try to reconnect using that name forever. After three tries, give up and use a random nick. Either we'll learn a new local address from IRC and switch to that, or it was right and the other guy is advertising for us. This avoids a pessimal case where a second testnet node behind a nat is unable to get any peers because he can't get on IRC.
Diffstat (limited to 'src/netbase.cpp')
0 files changed, 0 insertions, 0 deletions