MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetOutputType

Method GetOutputType

src/script/descriptor.cpp:818–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816 SHDescriptor(std::unique_ptr<DescriptorImpl> desc) : DescriptorImpl({}, std::move(desc), "sh") {}
817
818 std::optional<OutputType> GetOutputType() const override
819 {
820 assert(m_subdescriptor_args.size() == 1);
821 if (m_subdescriptor_args[0]->GetOutputType() == OutputType::BECH32) return OutputType::P2SH_SEGWIT;
822 return OutputType::LEGACY;
823 }
824 bool IsSingleType() const final { return true; }
825};
826

Callers 8

GetNewDestinationMethod · 0.45
addmultisigaddressFunction · 0.45
ProcessImportDescriptorFunction · 0.45
backup.cppFile · 0.45
DoCheckFunction · 0.45
createmultisigFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by 1

DoCheckFunction · 0.36