MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsSegwit

Method IsSegwit

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

Source from the content-addressed store, hash-verified

1418 }
1419
1420 bool IsSegwit() const { return m_subdescriptor_args[0]->GetOutputType() == OutputType::BECH32; }
1421
1422public:
1423 SHDescriptor(std::unique_ptr<DescriptorImpl> desc) : DescriptorImpl({}, std::move(desc), "sh") {}

Callers

nothing calls this directly

Calls 1

GetOutputTypeMethod · 0.45

Tested by

no test coverage detected