aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorMarko Bencun <marko.bencun@monetas.net>2017-05-27 12:00:37 +0200
committerMarko Bencun <marko.bencun@monetas.net>2017-05-30 09:21:47 +0200
commit5d67526026cd41845e06e93e5ae216bc1a7b9596 (patch)
treef559badaaefa0126c881c4d8451d88615357c772 /src/net.cpp
parent5c63d665e51ed0cd5d29275a5d63b07a64300ac8 (diff)
downloadbitcoin-5d67526026cd41845e06e93e5ae216bc1a7b9596.tar.xz
add SeedNodes to CConnman::Options
Start of a series of changes to clean up the instantiation of connman by decoupling the command line arguments.
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 198d8f5fff..bac9b5732a 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1743,9 +1743,9 @@ void CConnman::ThreadOpenConnections()
// * Increase the number of connectable addresses in the tried table.
//
// Method:
- // * Choose a random address from new and attempt to connect to it if we can connect
+ // * Choose a random address from new and attempt to connect to it if we can connect
// successfully it is added to tried.
- // * Start attempting feeler connections only after node finishes making outbound
+ // * Start attempting feeler connections only after node finishes making outbound
// connections.
// * Only make a feeler connection once every few minutes.
//
@@ -2212,6 +2212,10 @@ bool CConnman::Start(CScheduler& scheduler, std::string& strNodeError, Options c
SetBestHeight(connOptions.nBestHeight);
+ for (const auto& strDest : connOptions.vSeedNodes) {
+ AddOneShot(strDest);
+ }
+
clientInterface = connOptions.uiInterface;
if (clientInterface) {
clientInterface->InitMessage(_("Loading P2P addresses..."));