Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | CreateWallet(const CChainParams ¶ms, interfaces::Chain &chain, | ||||
const std::string &name, std::string &error, std::string &warning, | const std::string &name, std::string &error, std::string &warning, | ||||
std::shared_ptr<CWallet> &result); | std::shared_ptr<CWallet> &result); | ||||
//! Default for -keypool | //! Default for -keypool | ||||
static const unsigned int DEFAULT_KEYPOOL_SIZE = 1000; | static const unsigned int DEFAULT_KEYPOOL_SIZE = 1000; | ||||
//! -paytxfee default | //! -paytxfee default | ||||
constexpr Amount DEFAULT_PAY_TX_FEE = Amount::zero(); | constexpr Amount DEFAULT_PAY_TX_FEE = Amount::zero(); | ||||
//! -fallbackfee default | //! -fallbackfee default | ||||
static const Amount DEFAULT_FALLBACK_FEE(20000 * SATOSHI); | static const Amount DEFAULT_FALLBACK_FEE = Amount::zero(); | ||||
//! -mintxfee default | //! -mintxfee default | ||||
static const Amount DEFAULT_TRANSACTION_MINFEE_PER_KB = 1000 * SATOSHI; | static const Amount DEFAULT_TRANSACTION_MINFEE_PER_KB = 1000 * 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); | ||||
//! 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; | ||||
▲ Show 20 Lines • Show All 1,227 Lines • ▼ Show 20 Lines | public: | ||||
bool ImportScriptPubKeys(const std::string &label, | bool ImportScriptPubKeys(const std::string &label, | ||||
const std::set<CScript> &script_pub_keys, | const std::set<CScript> &script_pub_keys, | ||||
const bool have_solving_data, | const bool have_solving_data, | ||||
const bool apply_label, const int64_t timestamp) | const bool apply_label, const int64_t timestamp) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
CFeeRate m_pay_tx_fee{DEFAULT_PAY_TX_FEE}; | CFeeRate m_pay_tx_fee{DEFAULT_PAY_TX_FEE}; | ||||
bool m_spend_zero_conf_change{DEFAULT_SPEND_ZEROCONF_CHANGE}; | bool m_spend_zero_conf_change{DEFAULT_SPEND_ZEROCONF_CHANGE}; | ||||
// will be defined via chainparams | //! will be false if -fallbackfee=0 | ||||
bool m_allow_fallback_fee{true}; | bool m_allow_fallback_fee{true}; | ||||
// Override with -mintxfee | // Override with -mintxfee | ||||
CFeeRate m_min_fee{DEFAULT_TRANSACTION_MINFEE_PER_KB}; | CFeeRate m_min_fee{DEFAULT_TRANSACTION_MINFEE_PER_KB}; | ||||
/** | /** | ||||
* 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 | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 361 Lines • Show Last 20 Lines |