X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Finit.cpp;h=5b05ea855012e927a702c54fdd0412993d877161;hb=9acf270b14e561fe959ff25001f083a00e5e1caa;hp=bb87075ba9a24961d3b3277f141495d592fc7389;hpb=77eabaa6e041aa8bfb0f5fc824811cff7abdfadf;p=novacoin.git diff --git a/src/init.cpp b/src/init.cpp index bb87075..5b05ea8 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -27,6 +27,8 @@ using namespace boost; CWallet* pwalletMain; CClientUIInterface uiInterface; std::string strWalletFileName; +unsigned int nNodeLifespan; +unsigned int nDerivationMethodIndex; ////////////////////////////////////////////////////////////////////////////// // @@ -222,8 +224,6 @@ std::string HelpMessage() " -? " + _("This help message") + "\n" + " -conf= " + _("Specify configuration file (default: novacoin.conf)") + "\n" + " -pid= " + _("Specify pid file (default: novacoind.pid)") + "\n" + - " -gen " + _("Generate coins") + "\n" + - " -gen=0 " + _("Don't generate coins") + "\n" + " -datadir= " + _("Specify data directory") + "\n" + " -wallet= " + _("Specify wallet file (within data directory)") + "\n" + " -dbcache= " + _("Set database cache size in megabytes (default: 25)") + "\n" + @@ -244,8 +244,10 @@ std::string HelpMessage() " -irc " + _("Find peers using internet relay chat (default: 1)") + "\n" + " -listen " + _("Accept connections from outside (default: 1 if no -proxy or -connect)") + "\n" + " -bind= " + _("Bind to given address. Use [host]:port notation for IPv6") + "\n" + - " -dnsseed " + _("Find peers using DNS lookup (default: 0)") + "\n" + + " -dnsseed " + _("Find peers using DNS lookup (default: 1)") + "\n" + " -nosynccheckpoints " + _("Disable sync checkpoints (default: 0)") + "\n" + + " -stakepooledkeys " + _("Use pooled pubkeys for the last coinstake output (default: 0)") + "\n" + + " -derivationmethod " + _("Which key derivation method to use by default (default: sha512)") + "\n" + " -banscore= " + _("Threshold for disconnecting misbehaving peers (default: 100)") + "\n" + " -bantime= " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n" + " -maxreceivebuffer= " + _("Maximum per-connection receive buffer, *1000 bytes (default: 5000)") + "\n" + @@ -352,6 +354,12 @@ bool AppInit2() // ********************************************************* Step 2: parameter interactions + nNodeLifespan = GetArg("-addrlifespan", 7); + fStakeUsePooledKeys = GetBoolArg("-stakepooledkeys", false); + + if(GetArg("-derivationmethod", "sha512") == "scrypt+sha512") + nDerivationMethodIndex = 1; + fTestNet = GetBoolArg("-testnet"); if (fTestNet) { SoftSetBoolArg("-irc", true);