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

Method Node

src/script/miniscript.h:614–615  ·  view source on GitHub ↗

Constructor which takes all of the data that a Node could possibly contain. This is kept private as no valid fragment has all of these arguments. Only used by Clone()

Source from the content-addressed store, hash-verified

612 // This is kept private as no valid fragment has all of these arguments.
613 // Only used by Clone()
614 Node(internal::NoDupCheck, MiniscriptContext script_ctx, enum Fragment nt, std::vector<Node> sub, std::vector<Key> key, std::vector<unsigned char> arg, uint32_t val)
615 : fragment(nt), k(val), keys(std::move(key)), data(std::move(arg)), subs(std::move(sub)), m_script_ctx{script_ctx}, ops(CalcOps()), ss(CalcStackSize()), ws(CalcWitnessSize()), typ(CalcType()), scriptlen(CalcScriptLen()) {}
616
617 //! Compute the length of the script for this miniscript (including children).
618 size_t CalcScriptLen() const

Callers

nothing calls this directly

Calls 1

MsContextMethod · 0.45

Tested by

no test coverage detected