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/wallet.h | |
parent | a00eb388e8046fe105666445dff6c91e8f8664cb (diff) | |
download | bitcoin-d5cfb864ae16da62399bc97ab1ed54d32cf0cce9.tar.xz |
Allow Coin Selection be able to take external inputs
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 15a5933424..0624e00859 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -576,14 +576,13 @@ public: /** Pass this transaction to node for mempool insertion and relay to peers if flag set to true */ bool SubmitTxMemoryPoolAndRelay(const CWalletTx& wtx, std::string& err_string, bool relay) const; - bool DummySignTx(CMutableTransaction &txNew, const std::set<CTxOut> &txouts, bool use_max_sig = false) const + bool DummySignTx(CMutableTransaction &txNew, const std::set<CTxOut> &txouts, const CCoinControl* coin_control = nullptr) const { std::vector<CTxOut> v_txouts(txouts.size()); std::copy(txouts.begin(), txouts.end(), v_txouts.begin()); - return DummySignTx(txNew, v_txouts, use_max_sig); + return DummySignTx(txNew, v_txouts, coin_control); } - bool DummySignTx(CMutableTransaction &txNew, const std::vector<CTxOut> &txouts, bool use_max_sig = false) const; - bool DummySignInput(CTxIn &tx_in, const CTxOut &txout, bool use_max_sig = false) const; + bool DummySignTx(CMutableTransaction &txNew, const std::vector<CTxOut> &txouts, const CCoinControl* coin_control = nullptr) const; bool ImportScripts(const std::set<CScript> scripts, int64_t timestamp) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); bool ImportPrivKeys(const std::map<CKeyID, CKey>& privkey_map, const int64_t timestamp) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); @@ -928,4 +927,6 @@ bool AddWalletSetting(interfaces::Chain& chain, const std::string& wallet_name); //! Remove wallet name from persistent configuration so it will not be loaded on startup. bool RemoveWalletSetting(interfaces::Chain& chain, const std::string& wallet_name); +bool DummySignInput(const SigningProvider& provider, CTxIn &tx_in, const CTxOut &txout, bool use_max_sig); + #endif // BITCOIN_WALLET_WALLET_H |