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

Method MakeScripts

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

Source from the content-addressed store, hash-verified

1411{
1412protected:
1413 std::vector<CScript> MakeScripts(const std::vector<CPubKey>&, std::span<const CScript> scripts, FlatSigningProvider& out) const override
1414 {
1415 auto ret = Vector(GetScriptForDestination(ScriptHash(scripts[0])));
1416 if (ret.size()) out.scripts.emplace(CScriptID(scripts[0]), scripts[0]);
1417 return ret;
1418 }
1419
1420 bool IsSegwit() const { return m_subdescriptor_args[0]->GetOutputType() == OutputType::BECH32; }
1421

Callers

nothing calls this directly

Calls 6

VectorFunction · 0.85
GetScriptForDestinationFunction · 0.85
ScriptHashClass · 0.85
CScriptIDClass · 0.85
emplaceMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected