diff options
| author | Andrew Chow <[email protected]> | 2020-02-10 19:49:31 -0500 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2020-03-08 12:26:32 -0400 |
| commit | d999dd588cab0ff479bc7bee8c9fc33880265ec6 (patch) | |
| tree | 661ee9f6b871d1e8b3ec1c46a80d60f9b06d3880 /src/wallet/scriptpubkeyman.cpp | |
| parent | Refactor rawtransaction's SignTransaction into generic SignTransaction function (diff) | |
| download | discoin-d999dd588cab0ff479bc7bee8c9fc33880265ec6.tar.xz discoin-d999dd588cab0ff479bc7bee8c9fc33880265ec6.zip | |
Add SignTransaction function to ScriptPubKeyMan and LegacyScriptPubKeyMan
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
| -rw-r--r-- | src/wallet/scriptpubkeyman.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index 8851d0af3..b11027565 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -5,6 +5,7 @@ #include <key_io.h> #include <outputtype.h> #include <script/descriptor.h> +#include <script/sign.h> #include <util/bip32.h> #include <util/strencodings.h> #include <util/translation.h> @@ -505,6 +506,11 @@ bool LegacyScriptPubKeyMan::CanProvide(const CScript& script, SignatureData& sig } } +bool LegacyScriptPubKeyMan::SignTransaction(CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int, std::string>& input_errors) const +{ + return ::SignTransaction(tx, this, coins, sighash, input_errors); +} + const CKeyMetadata* LegacyScriptPubKeyMan::GetMetadata(const CTxDestination& dest) const { LOCK(cs_KeyStore); |