Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show All 40 Lines | |||||
extern unsigned int nTxConfirmTarget; | 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); | ||||
//! -mintxfee default | |||||
static const Amount DEFAULT_TRANSACTION_MINFEE(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); | ||||
//! 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; | ||||
▲ Show 20 Lines • Show All 888 Lines • ▼ Show 20 Lines | public: | ||||
void ListAccountCreditDebit(const std::string &strAccount, | void ListAccountCreditDebit(const std::string &strAccount, | ||||
std::list<CAccountingEntry> &entries); | std::list<CAccountingEntry> &entries); | ||||
bool AddAccountingEntry(const CAccountingEntry &); | bool AddAccountingEntry(const CAccountingEntry &); | ||||
bool AddAccountingEntry(const CAccountingEntry &, CWalletDB *pwalletdb); | bool AddAccountingEntry(const CAccountingEntry &, CWalletDB *pwalletdb); | ||||
template <typename ContainerType> | template <typename ContainerType> | ||||
bool DummySignTx(CMutableTransaction &txNew, const ContainerType &coins); | bool DummySignTx(CMutableTransaction &txNew, const ContainerType &coins); | ||||
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 241 Lines • Show Last 20 Lines |