mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge pull request #4131
3e1cf9b
add DEFAULT_TRANSACTION_FEE constant in wallet (Philip Kaufmann)
This commit is contained in:
commit
0ecd8aae20
@ -93,7 +93,7 @@ void OptionsModel::Init()
|
|||||||
// Wallet
|
// Wallet
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
if (!settings.contains("nTransactionFee"))
|
if (!settings.contains("nTransactionFee"))
|
||||||
settings.setValue("nTransactionFee", 0);
|
settings.setValue("nTransactionFee", DEFAULT_TRANSACTION_FEE);
|
||||||
nTransactionFee = settings.value("nTransactionFee").toLongLong(); // if -paytxfee is set, this will be overridden later in init.cpp
|
nTransactionFee = settings.value("nTransactionFee").toLongLong(); // if -paytxfee is set, this will be overridden later in init.cpp
|
||||||
if (mapArgs.count("-paytxfee"))
|
if (mapArgs.count("-paytxfee"))
|
||||||
addOverriddenOption("-paytxfee");
|
addOverriddenOption("-paytxfee");
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
#include "wallet.h"
|
#include "wallet.h"
|
||||||
|
|
||||||
#include "base58.h"
|
#include "base58.h"
|
||||||
|
#include "checkpoints.h"
|
||||||
#include "coincontrol.h"
|
#include "coincontrol.h"
|
||||||
#include "net.h"
|
#include "net.h"
|
||||||
#include "checkpoints.h"
|
|
||||||
|
|
||||||
#include <boost/algorithm/string/replace.hpp>
|
#include <boost/algorithm/string/replace.hpp>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
int64_t nTransactionFee = 0;
|
int64_t nTransactionFee = DEFAULT_TRANSACTION_FEE;
|
||||||
bool bSpendZeroConfChange = true;
|
bool bSpendZeroConfChange = true;
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
extern int64_t nTransactionFee;
|
extern int64_t nTransactionFee;
|
||||||
extern bool bSpendZeroConfChange;
|
extern bool bSpendZeroConfChange;
|
||||||
|
|
||||||
|
// -paytxfee default
|
||||||
|
static const int64_t DEFAULT_TRANSACTION_FEE = 0;
|
||||||
// -paytxfee will warn if called with a higher fee than this amount (in satoshis) per KB
|
// -paytxfee will warn if called with a higher fee than this amount (in satoshis) per KB
|
||||||
static const int nHighTransactionFeeWarning = 0.01 * COIN;
|
static const int nHighTransactionFeeWarning = 0.01 * COIN;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user