diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-06-04 16:37:41 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-06-22 21:53:11 -0400 |
commit | 177c15d2f7cd5406ddbce8217fc023057539b828 (patch) | |
tree | 8a06ff84feb783bf06edb5dab49a8af7b18fcd64 /src/wallet/wallet.cpp | |
parent | c93e123dc72bfc1bd2c637fdcd032e570d53a7bd (diff) | |
download | bitcoin-177c15d2f7cd5406ddbce8217fc023057539b828.tar.xz |
Limit LegacyScriptPubKeyMan address types
Make sure that LegacyScriptPubKeyMan can only be used for legacy,
p2sh-segwit, and bech32 address types.
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 256faf2b23..63d0f4cf41 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3033,7 +3033,7 @@ void CWallet::SetupLegacyScriptPubKeyMan() } auto spk_manager = std::unique_ptr<ScriptPubKeyMan>(new LegacyScriptPubKeyMan(*this)); - for (const auto& type : OUTPUT_TYPES) { + for (const auto& type : LEGACY_OUTPUT_TYPES) { m_internal_spk_managers[type] = spk_manager.get(); m_external_spk_managers[type] = spk_manager.get(); } |