diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-10-18 17:17:17 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-09-29 16:48:43 -0400 |
commit | d5cfb864ae16da62399bc97ab1ed54d32cf0cce9 (patch) | |
tree | 4c6a359a5f1ee2a86778d39b64ec5300211e3b83 /src/wallet/spend.h | |
parent | a00eb388e8046fe105666445dff6c91e8f8664cb (diff) |
Allow Coin Selection be able to take external inputs
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r-- | src/wallet/spend.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet/spend.h b/src/wallet/spend.h index e39f134dc3..3a723d9832 100644 --- a/src/wallet/spend.h +++ b/src/wallet/spend.h @@ -66,6 +66,7 @@ public: //Get the marginal bytes of spending the specified output int CalculateMaximumSignedInputSize(const CTxOut& txout, const CWallet* pwallet, bool use_max_sig = false); +int CalculateMaximumSignedInputSize(const CTxOut& txout, const SigningProvider* pwallet, bool use_max_sig = false); struct TxSize { int64_t vsize{-1}; @@ -76,8 +77,8 @@ struct TxSize { * Use DummySignatureCreator, which inserts 71 byte signatures everywhere. * NOTE: this requires that all inputs must be in mapWallet (eg the tx should * be AllInputsMine). */ -TxSize CalculateMaximumSignedTxSize(const CTransaction& tx, const CWallet* wallet, const std::vector<CTxOut>& txouts, bool use_max_sig = false); -TxSize CalculateMaximumSignedTxSize(const CTransaction& tx, const CWallet* wallet, bool use_max_sig = false) EXCLUSIVE_LOCKS_REQUIRED(wallet->cs_wallet); +TxSize CalculateMaximumSignedTxSize(const CTransaction& tx, const CWallet* wallet, const std::vector<CTxOut>& txouts, const CCoinControl* coin_control = nullptr); +TxSize CalculateMaximumSignedTxSize(const CTransaction& tx, const CWallet* wallet, const CCoinControl* coin_control = nullptr) EXCLUSIVE_LOCKS_REQUIRED(wallet->cs_wallet); /** * populate vCoins with vector of available COutputs. |