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:
parent
a8f69541ad
commit
5b4fdbbff5
2 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue