Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
//! 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; | ||||
//! Default for -avoidpartialspends | //! Default for -avoidpartialspends | ||||
static const bool DEFAULT_AVOIDPARTIALSPENDS = false; | static const bool DEFAULT_AVOIDPARTIALSPENDS = false; | ||||
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; | ||||
//! -maxtxfee default | |||||
constexpr Amount DEFAULT_TRANSACTION_MAXFEE{COIN / 10}; | |||||
//! Discourage users to set fees higher than this amount (in satoshis) per kB | |||||
constexpr Amount HIGH_TX_FEE_PER_KB{COIN / 100}; | |||||
//! -maxtxfee will warn if called with a higher fee than this amount (in | |||||
//! satoshis) | |||||
constexpr Amount HIGH_MAX_TX_FEE{100 * HIGH_TX_FEE_PER_KB}; | |||||
class CChainParams; | class CChainParams; | ||||
class CCoinControl; | class CCoinControl; | ||||
class COutput; | class COutput; | ||||
class CReserveKey; | class CReserveKey; | ||||
class CScript; | class CScript; | ||||
class CTxMemPool; | class CTxMemPool; | ||||
class CWalletTx; | class CWalletTx; | ||||
▲ Show 20 Lines • Show All 1,070 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* If fee estimation does not have enough data to provide estimates, use | * If fee estimation does not have enough data to provide estimates, use | ||||
* this fee instead. Has no effect if not using fee estimation Override with | * this fee instead. Has no effect if not using fee estimation Override with | ||||
* -fallbackfee | * -fallbackfee | ||||
*/ | */ | ||||
CFeeRate m_fallback_fee{DEFAULT_FALLBACK_FEE}; | CFeeRate m_fallback_fee{DEFAULT_FALLBACK_FEE}; | ||||
OutputType m_default_address_type{DEFAULT_ADDRESS_TYPE}; | OutputType m_default_address_type{DEFAULT_ADDRESS_TYPE}; | ||||
OutputType m_default_change_type{DEFAULT_CHANGE_TYPE}; | OutputType m_default_change_type{DEFAULT_CHANGE_TYPE}; | ||||
/** | |||||
* Absolute maximum transaction fee (in satoshis) used by default for the | |||||
* wallet. | |||||
*/ | |||||
Amount m_default_max_tx_fee{DEFAULT_TRANSACTION_MAXFEE}; | |||||
bool NewKeyPool(); | bool NewKeyPool(); | ||||
size_t KeypoolCountExternalKeys() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | size_t KeypoolCountExternalKeys() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
bool TopUpKeyPool(unsigned int kpSize = 0); | bool TopUpKeyPool(unsigned int kpSize = 0); | ||||
/** | /** | ||||
* Reserves a key from the keypool and sets nIndex to its index | * Reserves a key from the keypool and sets nIndex to its index | ||||
* | * | ||||
▲ Show 20 Lines • Show All 362 Lines • Show Last 20 Lines |