You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #674: Use Threshold type in concrete policy and in Terminal::multi/multi_a
79d3f7e sortedmulti: eliminate allocation in constructor_check (Andrew Poelstra)
f62322d miniscript: use new Threshold type for multi/multi_a (Andrew Poelstra)
1ced03b policy: use Threshold in concrete policy (Andrew Poelstra)
Pull request description:
Some more large but mostly-mechanical diffs. This is able to eliminate a bunch of error paths, though the actual error variants can't be removed until we also convert Terminal::thresh in the next PR(s). At that point we will start to see the real benefits of this type because fallible functions will become fallible and massive amounts of compiler error-checking can just go away entirely.
Also removes the allocation in `SortedMulti::constructor_check` that was pointed out in #660.
ACKs for top commit:
sanket1729:
ACK 79d3f7e
tcharding:
ACK 79d3f7e
Tree-SHA512: 98828910c6fea91608b9f7dc15f68999ac4555e2e8eac28c04bd3e70f7c5e74dfeb7902805e606a3ad5a7ba36f77d4dc0c47f189b7ff591a8c4fd7abcccbefc7
0 commit comments