Skip to content

Commit 5b4fdbb

Browse files
committed
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.
1 parent a8f6954 commit 5b4fdbb

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/outputtype.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ static constexpr auto OUTPUT_TYPES = std::array{
2727
OutputType::P2SH_SEGWIT,
2828
OutputType::BECH32,
2929
OutputType::BECH32M,
30-
OutputType::UNKNOWN,
3130
};
3231

3332
std::optional<OutputType> ParseOutputType(const std::string& str);

src/wallet/wallet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3433,7 +3433,6 @@ void CWallet::SetupDescriptorScriptPubKeyMans()
34333433

34343434
for (bool internal : {false, true}) {
34353435
for (OutputType t : OUTPUT_TYPES) {
3436-
if (t == OutputType::UNKNOWN) continue;
34373436
auto spk_manager = std::unique_ptr<DescriptorScriptPubKeyMan>(new DescriptorScriptPubKeyMan(*this));
34383437
if (IsCrypted()) {
34393438
if (IsLocked()) {

0 commit comments

Comments
 (0)