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

Method Clone

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

Source from the content-addressed store, hash-verified

1352 std::optional<int64_t> MaxSatisfactionElems() const override { return 1 + m_threshold; }
1353
1354 std::unique_ptr<DescriptorImpl> Clone() const override
1355 {
1356 std::vector<std::unique_ptr<PubkeyProvider>> providers;
1357 providers.reserve(m_pubkey_args.size());
1358 std::transform(m_pubkey_args.begin(), m_pubkey_args.end(), std::back_inserter(providers), [](const std::unique_ptr<PubkeyProvider>& p) { return p->Clone(); });
1359 return std::make_unique<MultisigDescriptor>(m_threshold, std::move(providers), m_sorted);
1360 }
1361};
1362
1363/** A parsed (sorted)multi_a(...) descriptor. Always uses x-only pubkeys. */

Callers

nothing calls this directly

Calls 5

reserveMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
CloneMethod · 0.45

Tested by

no test coverage detected