Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show All 39 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; | ||||
/** | /** | ||||
* Estimate the minimum fee considering user set parameters and the required | * Estimate the minimum fee considering user set parameters and the required | ||||
* fee | * fee | ||||
*/ | */ | ||||
static Amount GetMinimumFee(unsigned int nTxBytes, | static Amount GetMinimumFee(unsigned int nTxBytes, | ||||
unsigned int nConfirmTarget, | unsigned int nConfirmTarget, | ||||
const CTxMemPool &pool); | const CTxMemPool &pool); | ||||
/** | /** | ||||
* Estimate the minimum fee considering required fee and targetFee or if 0 | * Estimate the minimum fee considering required fee and targetFee or if 0 | ||||
* then fee estimation for nConfirmTarget | * then fee estimation for nConfirmTarget | ||||
*/ | */ | ||||
static Amount GetMinimumFee(unsigned int nTxBytes, | static Amount GetMinimumFee(unsigned int nTxBytes, | ||||
unsigned int nConfirmTarget, | unsigned int nConfirmTarget, | ||||
const CTxMemPool &pool, Amount targetFee); | const CTxMemPool &pool, Amount targetFee); | ||||
/** | |||||
* Return the minimum required fee taking into account the floating relay | |||||
* fee and user set minimum transaction fee | |||||
*/ | |||||
static Amount GetRequiredFee(unsigned int nTxBytes); | |||||
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); | ||||
void ReturnKey(int64_t nIndex, bool fInternal, const CPubKey &pubkey); | void ReturnKey(int64_t nIndex, bool fInternal, const CPubKey &pubkey); | ||||
▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines |