Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show All 39 Lines | |||||
extern CFeeRate payTxFee; | extern CFeeRate payTxFee; | ||||
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); | ||||
//! -mintxfee default | |||||
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; | ||||
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; | ||||
▲ Show 20 Lines • Show All 1,021 Lines • ▼ Show 20 Lines | bool DummySignTx(CMutableTransaction &txNew, | ||||
std::vector<CTxOut> v_txouts(txouts.size()); | std::vector<CTxOut> v_txouts(txouts.size()); | ||||
std::copy(txouts.begin(), txouts.end(), v_txouts.begin()); | std::copy(txouts.begin(), txouts.end(), v_txouts.begin()); | ||||
return DummySignTx(txNew, v_txouts); | return DummySignTx(txNew, v_txouts); | ||||
} | } | ||||
bool DummySignTx(CMutableTransaction &txNew, | bool DummySignTx(CMutableTransaction &txNew, | ||||
const std::vector<CTxOut> &txouts) const; | const std::vector<CTxOut> &txouts) const; | ||||
bool DummySignInput(CTxIn &tx_in, const CTxOut &txout) const; | bool DummySignInput(CTxIn &tx_in, const CTxOut &txout) const; | ||||
static CFeeRate minTxFee; | |||||
static CFeeRate fallbackFee; | static CFeeRate fallbackFee; | ||||
bool NewKeyPool(); | bool NewKeyPool(); | ||||
size_t KeypoolCountExternalKeys(); | size_t KeypoolCountExternalKeys(); | ||||
bool TopUpKeyPool(unsigned int kpSize = 0); | bool TopUpKeyPool(unsigned int kpSize = 0); | ||||
void ReserveKeyFromKeyPool(int64_t &nIndex, CKeyPool &keypool, | void ReserveKeyFromKeyPool(int64_t &nIndex, CKeyPool &keypool, | ||||
bool fRequestedInternal); | bool fRequestedInternal); | ||||
void KeepKey(int64_t nIndex); | void KeepKey(int64_t nIndex); | ||||
▲ Show 20 Lines • Show All 315 Lines • Show Last 20 Lines |