mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Limit LegacyScriptPubKeyMan address types
Make sure that LegacyScriptPubKeyMan can only be used for legacy, p2sh-segwit, and bech32 address types.
This commit is contained in:
@@ -254,6 +254,13 @@ public:
|
||||
boost::signals2::signal<void ()> NotifyCanGetAddressesChanged;
|
||||
};
|
||||
|
||||
/** OutputTypes supported by the LegacyScriptPubKeyMan */
|
||||
static const std::unordered_set<OutputType> LEGACY_OUTPUT_TYPES {
|
||||
OutputType::LEGACY,
|
||||
OutputType::P2SH_SEGWIT,
|
||||
OutputType::BECH32,
|
||||
};
|
||||
|
||||
class LegacyScriptPubKeyMan : public ScriptPubKeyMan, public FillableSigningProvider
|
||||
{
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user