X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Finit.cpp;h=5b05ea855012e927a702c54fdd0412993d877161;hb=9acf270b14e561fe959ff25001f083a00e5e1caa;hp=59ce45018e3ccefa9eef6dc1046b35a0b5d917b9;hpb=30884beecf4d35fe02c7e01c1847c4481ce8b167;p=novacoin.git diff --git a/src/init.cpp b/src/init.cpp index 59ce450..5b05ea8 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -28,6 +28,7 @@ CWallet* pwalletMain; CClientUIInterface uiInterface; std::string strWalletFileName; unsigned int nNodeLifespan; +unsigned int nDerivationMethodIndex; ////////////////////////////////////////////////////////////////////////////// // @@ -245,6 +246,8 @@ std::string HelpMessage() " -bind= " + _("Bind to given address. Use [host]:port notation for IPv6") + "\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 +355,10 @@ 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) {