diff options
author | Wladimir J. van der Laan <laanwj@protonmail.com> | 2021-02-12 11:41:57 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@protonmail.com> | 2021-02-12 11:49:34 +0100 |
commit | e9c037ba64dd5b073fccf059ef75db1c97abd0bd (patch) | |
tree | 87f3e68511b0c62d5ddd22b20396bb0a3ff7b4ca /src/chainparams.h | |
parent | 9996b1806a189a9632c9f5023489eb47bf87ca05 (diff) | |
parent | fe3e993968d6b46777d5a16a662cd22790ddf5bb (diff) | |
download | bitcoin-e9c037ba64dd5b073fccf059ef75db1c97abd0bd.tar.xz |
Merge #19884: p2p: No delay in adding fixed seeds if -dnsseed=0 and peers.dat is empty
fe3e993968d6b46777d5a16a662cd22790ddf5bb [p2p] No delay in adding fixed seeds if -dnsseed=0 and peers.dat is empty. Add -fixedseeds arg. (Dhruv Mehta)
Pull request description:
Closes #19795
Before PR: If `peers.dat` is empty and `-dnsseed=0`, bitcoind will fallback on to fixed seeds but only after a 60 seconds delay.
After PR: There's no 60 second delay.
To reproduce:
`rm ~/.bitcoin/peers.dat && src/bitcoind -dnsseed=0` without and with patch code
Other changes in the PR:
- `-fixedseeds` command line argument added: `-dnsseed=0 -fixedseeds=0 -addnode=X` provides a trusted peer only setup. `-dnsseed=0 -fixedseeds=0` allows for a `addnode` RPC to add a trusted peer without falling back to hardcoded seeds.
ACKs for top commit:
LarryRuane:
re-ACK fe3e993968d6b46777d5a16a662cd22790ddf5bb
laanwj:
re-ACK fe3e993968d6b46777d5a16a662cd22790ddf5bb
Tree-SHA512: 79449bf4e83a315be6dbac9bdd226de89d2a3f7f76d9c5640a2cb3572866e6b0e8ed67e65674c9824054cf13119dc01c7e1a33848daac6b6c34dbc158b6dba8f
Diffstat (limited to 'src/chainparams.h')
0 files changed, 0 insertions, 0 deletions