Compute the length of the script for this miniscript (including children).
| 616 | |
| 617 | //! Compute the length of the script for this miniscript (including children). |
| 618 | size_t CalcScriptLen() const |
| 619 | { |
| 620 | size_t subsize = 0; |
| 621 | for (const auto& sub : subs) { |
| 622 | subsize += sub.ScriptSize(); |
| 623 | } |
| 624 | Type sub0type = subs.size() > 0 ? subs[0].GetType() : ""_mst; |
| 625 | return internal::ComputeScriptLen(fragment, sub0type, subsize, k, subs.size(), keys.size(), m_script_ctx); |
| 626 | } |
| 627 | |
| 628 | /* Apply a recursive algorithm to a Miniscript tree, without actual recursive calls. |
| 629 | * |
nothing calls this directly
no test coverage detected