0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

wallet: remove UNKNOWN type from OUTPUT_TYPES array

This array contains the known active output types only.
And it's solely used to create/walk-through the active spkms.
This commit is contained in:
furszy 2022-08-18 16:40:42 -03:00
parent a8f69541ad
commit 5b4fdbbff5
No known key found for this signature in database
GPG key ID: 5DD23CCC686AA623
2 changed files with 0 additions and 2 deletions

View file

@ -27,7 +27,6 @@ static constexpr auto OUTPUT_TYPES = std::array{
OutputType::P2SH_SEGWIT,
OutputType::BECH32,
OutputType::BECH32M,
OutputType::UNKNOWN,
};
std::optional<OutputType> ParseOutputType(const std::string& str);

View file

@ -3433,7 +3433,6 @@ void CWallet::SetupDescriptorScriptPubKeyMans()
for (bool internal : {false, true}) {
for (OutputType t : OUTPUT_TYPES) {
if (t == OutputType::UNKNOWN) continue;
auto spk_manager = std::unique_ptr<DescriptorScriptPubKeyMan>(new DescriptorScriptPubKeyMan(*this));
if (IsCrypted()) {
if (IsLocked()) {