mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
UI: wrong keypool default value displayed
This commit is contained in:
parent
0c0cdb3f2a
commit
2a25c8c8bb
@ -343,7 +343,7 @@ std::string HelpMessage(HelpMessageMode mode)
|
|||||||
strUsage += " -keepasskey=<key> " + _("KeePassHttp key for AES encrypted communication with KeePass") + "\n";
|
strUsage += " -keepasskey=<key> " + _("KeePassHttp key for AES encrypted communication with KeePass") + "\n";
|
||||||
strUsage += " -keepassid=<name> " + _("KeePassHttp id for the established association") + "\n";
|
strUsage += " -keepassid=<name> " + _("KeePassHttp id for the established association") + "\n";
|
||||||
strUsage += " -keepassname=<name> " + _("Name to construct url for KeePass entry that stores the wallet passphrase") + "\n";
|
strUsage += " -keepassname=<name> " + _("Name to construct url for KeePass entry that stores the wallet passphrase") + "\n";
|
||||||
strUsage += " -keypool=<n> " + strprintf(_("Set key pool size to <n> (default: %u)"), 100) + "\n";
|
strUsage += " -keypool=<n> " + strprintf(_("Set key pool size to <n> (default: %u)"), DEFAULT_KEYPOOL_SIZE) + "\n";
|
||||||
if (GetBoolArg("-help-debug", false))
|
if (GetBoolArg("-help-debug", false))
|
||||||
strUsage += " -mintxfee=<amt> " + strprintf(_("Fees (in DASH/Kb) smaller than this are considered zero fee for transaction creation (default: %s)"), FormatMoney(CWallet::minTxFee.GetFeePerK())) + "\n";
|
strUsage += " -mintxfee=<amt> " + strprintf(_("Fees (in DASH/Kb) smaller than this are considered zero fee for transaction creation (default: %s)"), FormatMoney(CWallet::minTxFee.GetFeePerK())) + "\n";
|
||||||
strUsage += " -paytxfee=<amt> " + strprintf(_("Fee (in DASH/kB) to add to transactions you send (default: %s)"), FormatMoney(payTxFee.GetFeePerK())) + "\n";
|
strUsage += " -paytxfee=<amt> " + strprintf(_("Fee (in DASH/kB) to add to transactions you send (default: %s)"), FormatMoney(payTxFee.GetFeePerK())) + "\n";
|
||||||
|
@ -1685,7 +1685,7 @@ Value keypoolrefill(const Array& params, bool fHelp)
|
|||||||
"\nFills the keypool."
|
"\nFills the keypool."
|
||||||
+ HelpRequiringPassphrase() + "\n"
|
+ HelpRequiringPassphrase() + "\n"
|
||||||
"\nArguments\n"
|
"\nArguments\n"
|
||||||
"1. newsize (numeric, optional, default=100) The new keypool size\n"
|
"1. newsize (numeric, optional, default=1000) The new keypool size\n"
|
||||||
"\nExamples:\n"
|
"\nExamples:\n"
|
||||||
+ HelpExampleCli("keypoolrefill", "")
|
+ HelpExampleCli("keypoolrefill", "")
|
||||||
+ HelpExampleRpc("keypoolrefill", "")
|
+ HelpExampleRpc("keypoolrefill", "")
|
||||||
|
@ -2639,7 +2639,7 @@ bool CWallet::NewKeyPool()
|
|||||||
if (IsLocked())
|
if (IsLocked())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int64_t nKeys = max(GetArg("-keypool", 1000), (int64_t) 0);
|
int64_t nKeys = max(GetArg("-keypool", DEFAULT_KEYPOOL_SIZE), (int64_t) 0);
|
||||||
for (int i = 0; i < nKeys; i++)
|
for (int i = 0; i < nKeys; i++)
|
||||||
{
|
{
|
||||||
int64_t nIndex = i+1;
|
int64_t nIndex = i+1;
|
||||||
@ -2666,7 +2666,7 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize)
|
|||||||
if (kpSize > 0)
|
if (kpSize > 0)
|
||||||
nTargetSize = kpSize;
|
nTargetSize = kpSize;
|
||||||
else
|
else
|
||||||
nTargetSize = max(GetArg("-keypool", 1000), (int64_t) 0);
|
nTargetSize = max(GetArg("-keypool", DEFAULT_KEYPOOL_SIZE), (int64_t) 0);
|
||||||
|
|
||||||
while (setKeyPool.size() < (nTargetSize + 1))
|
while (setKeyPool.size() < (nTargetSize + 1))
|
||||||
{
|
{
|
||||||
|
@ -48,6 +48,8 @@ static const CAmount DEFAULT_TRANSACTION_MAXFEE = 0.1 * COIN;
|
|||||||
static const CAmount nHighTransactionMaxFeeWarning = 100 * nHighTransactionFeeWarning;
|
static const CAmount nHighTransactionMaxFeeWarning = 100 * nHighTransactionFeeWarning;
|
||||||
//! Largest (in bytes) free transaction we're willing to create
|
//! Largest (in bytes) free transaction we're willing to create
|
||||||
static const unsigned int MAX_FREE_TRANSACTION_CREATE_SIZE = 1000;
|
static const unsigned int MAX_FREE_TRANSACTION_CREATE_SIZE = 1000;
|
||||||
|
//! -keypool default
|
||||||
|
static const unsigned int DEFAULT_KEYPOOL_SIZE = 1000;
|
||||||
|
|
||||||
class CAccountingEntry;
|
class CAccountingEntry;
|
||||||
class CCoinControl;
|
class CCoinControl;
|
||||||
|
Loading…
Reference in New Issue
Block a user