mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
miniscript: explicit the threshold size computation in multi()
This commit is contained in:
parent
8323e4249d
commit
7bbaca9d8d
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ size_t ComputeScriptLen(Fragment fragment, Type sub0typ, size_t subsize, uint32_
|
|||
case Fragment::SHA256: return 4 + 2 + 33;
|
||||
case Fragment::HASH160:
|
||||
case Fragment::RIPEMD160: return 4 + 2 + 21;
|
||||
case Fragment::MULTI: return 3 + (n_keys > 16) + (k > 16) + 34 * n_keys;
|
||||
case Fragment::MULTI: return 1 + BuildScript(n_keys).size() + BuildScript(k).size() + 34 * n_keys;
|
||||
case Fragment::AND_V: return subsize;
|
||||
case Fragment::WRAP_V: return subsize + (sub0typ << "x"_mst);
|
||||
case Fragment::WRAP_S:
|
||||
|
|
Loading…
Add table
Reference in a new issue