mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge pull request #4234
c122f55qt: Register CAmount metatype (Wladimir J. van der Laan)a372168Use a typedef for monetary values (Mark Friedenbach)
This commit is contained in:
commit
3fd192f8b4
63 changed files with 402 additions and 357 deletions
|
|
@ -662,7 +662,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||
// cost to you of processing a transaction.
|
||||
if (mapArgs.count("-minrelaytxfee"))
|
||||
{
|
||||
int64_t n = 0;
|
||||
CAmount n = 0;
|
||||
if (ParseMoney(mapArgs["-minrelaytxfee"], n) && n > 0)
|
||||
::minRelayTxFee = CFeeRate(n);
|
||||
else
|
||||
|
|
@ -672,7 +672,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||
#ifdef ENABLE_WALLET
|
||||
if (mapArgs.count("-mintxfee"))
|
||||
{
|
||||
int64_t n = 0;
|
||||
CAmount n = 0;
|
||||
if (ParseMoney(mapArgs["-mintxfee"], n) && n > 0)
|
||||
CWallet::minTxFee = CFeeRate(n);
|
||||
else
|
||||
|
|
@ -680,7 +680,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||
}
|
||||
if (mapArgs.count("-paytxfee"))
|
||||
{
|
||||
int64_t nFeePerK = 0;
|
||||
CAmount nFeePerK = 0;
|
||||
if (!ParseMoney(mapArgs["-paytxfee"], nFeePerK))
|
||||
return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s'"), mapArgs["-paytxfee"]));
|
||||
if (nFeePerK > nHighTransactionFeeWarning)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue