Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show All 32 Lines | |||||
typedef CWallet *CWalletRef; | typedef CWallet *CWalletRef; | ||||
extern std::vector<CWalletRef> vpwallets; | extern std::vector<CWalletRef> vpwallets; | ||||
/** | /** | ||||
* Settings | * Settings | ||||
*/ | */ | ||||
extern CFeeRate payTxFee; | extern CFeeRate payTxFee; | ||||
extern unsigned int nTxConfirmTarget; | |||||
extern bool bSpendZeroConfChange; | extern bool bSpendZeroConfChange; | ||||
static const unsigned int DEFAULT_KEYPOOL_SIZE = 1000; | static const unsigned int DEFAULT_KEYPOOL_SIZE = 1000; | ||||
//! -paytxfee default | //! -paytxfee default | ||||
static const Amount DEFAULT_TRANSACTION_FEE = Amount::zero(); | static const Amount DEFAULT_TRANSACTION_FEE = Amount::zero(); | ||||
//! -fallbackfee default | //! -fallbackfee default | ||||
static const Amount DEFAULT_FALLBACK_FEE(20000 * SATOSHI); | static const Amount DEFAULT_FALLBACK_FEE(20000 * SATOSHI); | ||||
//! minimum recommended increment for BIP 125 replacement txs | //! minimum recommended increment for BIP 125 replacement txs | ||||
static const Amount WALLET_INCREMENTAL_RELAY_FEE(5000 * SATOSHI); | static const Amount WALLET_INCREMENTAL_RELAY_FEE(5000 * SATOSHI); | ||||
//! target minimum change amount | //! target minimum change amount | ||||
static const Amount MIN_CHANGE = CENT; | static const Amount MIN_CHANGE = CENT; | ||||
//! final minimum change amount after paying for fees | //! final minimum change amount after paying for fees | ||||
static const Amount MIN_FINAL_CHANGE = MIN_CHANGE / 2; | static const Amount MIN_FINAL_CHANGE = MIN_CHANGE / 2; | ||||
//! Default for -spendzeroconfchange | //! Default for -spendzeroconfchange | ||||
static const bool DEFAULT_SPEND_ZEROCONF_CHANGE = true; | static const bool DEFAULT_SPEND_ZEROCONF_CHANGE = true; | ||||
//! Default for -walletrejectlongchains | //! Default for -walletrejectlongchains | ||||
static const bool DEFAULT_WALLET_REJECT_LONG_CHAINS = false; | static const bool DEFAULT_WALLET_REJECT_LONG_CHAINS = false; | ||||
//! -txconfirmtarget default | |||||
static const unsigned int DEFAULT_TX_CONFIRM_TARGET = 6; | |||||
//! 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; | ||||
static const bool DEFAULT_WALLETBROADCAST = true; | static const bool DEFAULT_WALLETBROADCAST = true; | ||||
static const bool DEFAULT_DISABLE_WALLET = false; | static const bool DEFAULT_DISABLE_WALLET = false; | ||||
//! if set, all keys will be derived by using BIP32 | //! if set, all keys will be derived by using BIP32 | ||||
static const bool DEFAULT_USE_HD_WALLET = true; | static const bool DEFAULT_USE_HD_WALLET = true; | ||||
extern const char *DEFAULT_WALLET_DAT; | extern const char *DEFAULT_WALLET_DAT; | ||||
▲ Show 20 Lines • Show All 1,218 Lines • Show Last 20 Lines |