aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorMarko Bencun <[email protected]>2017-05-27 12:00:37 +0200
committerMarko Bencun <[email protected]>2017-05-30 09:21:47 +0200
commit5d67526026cd41845e06e93e5ae216bc1a7b9596 (patch)
treef559badaaefa0126c881c4d8451d88615357c772 /src/init.cpp
parentMerge #10460: Broadcast address every day, not 9 hours (diff)
downloaddiscoin-5d67526026cd41845e06e93e5ae216bc1a7b9596.tar.xz
discoin-5d67526026cd41845e06e93e5ae216bc1a7b9596.zip
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/init.cpp')
-rw-r--r--src/init.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 3bbdb16c3..f343f1d96 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1386,11 +1386,6 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
}
}
- if (gArgs.IsArgSet("-seednode")) {
- BOOST_FOREACH(const std::string& strDest, gArgs.GetArgs("-seednode"))
- connman.AddOneShot(strDest);
- }
-
#if ENABLE_ZMQ
pzmqNotificationInterface = CZMQNotificationInterface::Create();
@@ -1659,6 +1654,10 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
connOptions.nMaxOutboundTimeframe = nMaxOutboundTimeframe;
connOptions.nMaxOutboundLimit = nMaxOutboundLimit;
+ if (gArgs.IsArgSet("-seednode")) {
+ connOptions.vSeedNodes = gArgs.GetArgs("-seednode");
+ }
+
if (!connman.Start(scheduler, strNodeError, connOptions))
return InitError(strNodeError);