diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-02-10 19:49:31 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-03-08 12:26:32 -0400 |
commit | d999dd588cab0ff479bc7bee8c9fc33880265ec6 (patch) | |
tree | 661ee9f6b871d1e8b3ec1c46a80d60f9b06d3880 /src/wallet/scriptpubkeyman.h | |
parent | 2c52b59d0a44a86d94fee4e437978d822862c542 (diff) | |
download | bitcoin-d999dd588cab0ff479bc7bee8c9fc33880265ec6.tar.xz |
Add SignTransaction function to ScriptPubKeyMan and LegacyScriptPubKeyMan
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
-rw-r--r-- | src/wallet/scriptpubkeyman.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h index 1a0d34a445..df4ea3ad7b 100644 --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -210,6 +210,9 @@ public: */ virtual bool CanProvide(const CScript& script, SignatureData& sigdata) { return false; } + /** Creates new signatures and adds them to the transaction. Returns whether all inputs were signed */ + virtual bool SignTransaction(CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int, std::string>& input_errors) const { return false; } + virtual uint256 GetID() const { return uint256(); } /** Prepends the wallet name in logging output to ease debugging in multi-wallet use cases */ @@ -350,6 +353,8 @@ public: bool CanProvide(const CScript& script, SignatureData& sigdata) override; + bool SignTransaction(CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int, std::string>& input_errors) const override; + uint256 GetID() const override; // Map from Key ID to key metadata. |