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()
| 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 |