mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-25 23:02:43 +02:00
Introduce SetType function to tell ScriptPubKeyMans the type and internal-ness of it
This commit is contained in:
@@ -1497,3 +1497,5 @@ std::set<CKeyID> LegacyScriptPubKeyMan::GetKeys() const
|
|||||||
}
|
}
|
||||||
return set_address;
|
return set_address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LegacyScriptPubKeyMan::SetType(OutputType type, bool internal) {}
|
||||||
|
@@ -222,6 +222,8 @@ public:
|
|||||||
|
|
||||||
virtual uint256 GetID() const { return uint256(); }
|
virtual uint256 GetID() const { return uint256(); }
|
||||||
|
|
||||||
|
virtual void SetType(OutputType type, bool internal) {}
|
||||||
|
|
||||||
/** Prepends the wallet name in logging output to ease debugging in multi-wallet use cases */
|
/** Prepends the wallet name in logging output to ease debugging in multi-wallet use cases */
|
||||||
template<typename... Params>
|
template<typename... Params>
|
||||||
void WalletLogPrintf(std::string fmt, Params... parameters) const {
|
void WalletLogPrintf(std::string fmt, Params... parameters) const {
|
||||||
@@ -366,6 +368,8 @@ public:
|
|||||||
|
|
||||||
uint256 GetID() const override;
|
uint256 GetID() const override;
|
||||||
|
|
||||||
|
void SetType(OutputType type, bool internal) override;
|
||||||
|
|
||||||
// Map from Key ID to key metadata.
|
// Map from Key ID to key metadata.
|
||||||
std::map<CKeyID, CKeyMetadata> mapKeyMetadata GUARDED_BY(cs_KeyStore);
|
std::map<CKeyID, CKeyMetadata> mapKeyMetadata GUARDED_BY(cs_KeyStore);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user