diff options
| author | J Ross Nicoll <[email protected]> | 2015-09-03 21:34:03 +0100 |
|---|---|---|
| committer | J Ross Nicoll <[email protected]> | 2015-09-06 11:37:03 +0100 |
| commit | ce196a9bfc2007b4ce79a1ec874c18fdda453caa (patch) | |
| tree | 1e369abc14f87d54cc3213699f092ce01336c747 /src/init.cpp | |
| parent | Merge pull request #1277 from patricklodder/1.10-fix-travis-extra-compiler (diff) | |
| download | discoin-ce196a9bfc2007b4ce79a1ec874c18fdda453caa.tar.xz discoin-ce196a9bfc2007b4ce79a1ec874c18fdda453caa.zip | |
Match fee calculation to legacy code
Purge all support for zero-fee transactions
Disable IsDust() for backwards compatibility
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index b8ef781a8..e770df012 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -346,7 +346,9 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-salvagewallet", _("Attempt to recover private keys from a corrupt wallet.dat") + " " + _("on startup")); strUsage += HelpMessageOpt("-sendfreetransactions", strprintf(_("Send transactions as zero-fee transactions if possible (default: %u)"), 0)); strUsage += HelpMessageOpt("-spendzeroconfchange", strprintf(_("Spend unconfirmed change when sending transactions (default: %u)"), 1)); - strUsage += HelpMessageOpt("-txconfirmtarget=<n>", strprintf(_("If paytxfee is not set, include enough fee so transactions begin confirmation on average within n blocks (default: %u)"), DEFAULT_TX_CONFIRM_TARGET)); + // Dogecoin: Disable TX confirm target as the dust prevention fees make + // the fee estimation code produce bizarre results. + // strUsage += HelpMessageOpt("-txconfirmtarget=<n>", strprintf(_("If paytxfee is not set, include enough fee so transactions begin confirmation on average within n blocks (default: %u)"), DEFAULT_TX_CONFIRM_TARGET)); strUsage += HelpMessageOpt("-maxtxfee=<amt>", strprintf(_("Maximum total fees to use in a single wallet transaction; setting this too low may abort large transactions (default: %s)"), FormatMoney(maxTxFee))); strUsage += HelpMessageOpt("-upgradewallet", _("Upgrade wallet to latest format") + " " + _("on startup")); @@ -355,7 +357,7 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-walletnotify=<cmd>", _("Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)")); strUsage += HelpMessageOpt("-zapwallettxes=<mode>", _("Delete all wallet transactions and only recover those parts of the blockchain through -rescan on startup") + " " + _("(1 = keep tx meta data e.g. account owner and payment request information, 2 = drop tx meta data)")); - + #endif strUsage += HelpMessageGroup(_("Debugging/Testing options:")); @@ -869,7 +871,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) mapArgs["-maxtxfee"], ::minRelayTxFee.ToString())); } } - nTxConfirmTarget = GetArg("-txconfirmtarget", DEFAULT_TX_CONFIRM_TARGET); + + // Dogecoin: Disable txconfirmtarget + // nTxConfirmTarget = GetArg("-txconfirmtarget", DEFAULT_TX_CONFIRM_TARGET); + nTxConfirmTarget = DEFAULT_TX_CONFIRM_TARGET; bSpendZeroConfChange = GetBoolArg("-spendzeroconfchange", true); fSendFreeTransactions = GetBoolArg("-sendfreetransactions", false); |