diff options
| author | Gregory Sanders <[email protected]> | 2016-12-02 15:29:20 -0500 |
|---|---|---|
| committer | Gregory Sanders <[email protected]> | 2016-12-13 09:41:04 -0500 |
| commit | 0b2294a980319cbffa8612ce993e0ecaa26fa509 (patch) | |
| tree | 82322585413c329bb052fd10715251d2935dec37 /src/wallet/wallet.h | |
| parent | Merge #9183: Final Preparation for main.cpp Split (diff) | |
| download | discoin-0b2294a980319cbffa8612ce993e0ecaa26fa509.tar.xz discoin-0b2294a980319cbffa8612ce993e0ecaa26fa509.zip | |
SelectCoinsMinConf: Prefer coins with fewer ancestors
Diffstat (limited to 'src/wallet/wallet.h')
| -rw-r--r-- | src/wallet/wallet.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 409d81704..47441c7a5 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -53,6 +53,8 @@ static const CAmount MIN_CHANGE = CENT; static const bool DEFAULT_SPEND_ZEROCONF_CHANGE = true; //! Default for -sendfreetransactions static const bool DEFAULT_SEND_FREE_TRANSACTIONS = false; +//! Default for -walletrejectlongchains +static const bool DEFAULT_WALLET_REJECT_LONG_CHAINS = false; //! -txconfirmtarget default static const unsigned int DEFAULT_TX_CONFIRM_TARGET = 6; //! -walletrbf default @@ -685,7 +687,7 @@ public: * completion the coin set and corresponding actual target value is * assembled */ - bool SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int nConfTheirs, std::vector<COutput> vCoins, std::set<std::pair<const CWalletTx*,unsigned int> >& setCoinsRet, CAmount& nValueRet) const; + bool SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int nConfTheirs, uint64_t nMaxAncestors, std::vector<COutput> vCoins, std::set<std::pair<const CWalletTx*,unsigned int> >& setCoinsRet, CAmount& nValueRet) const; bool IsSpent(const uint256& hash, unsigned int n) const; |