Closed sanket1729 closed 2 months ago
merged #697 -- can you rebase this?
Looks like the new test is failing.
@apoelstra, the new test was not testing the correct thing :) . This is now fixed. 🤞 CI passes this time.
@apoelstra ready for review.
Needs backport.
Opened https://github.com/rust-bitcoin/rust-miniscript/pull/705 to release new 12.x version.
We track tree depth at the time of parsing, but that is insufficient because wrappers also count towards the stack limit when creating
Miniscript
structure.We could also fix this by fixing the wrappers to be limited to size 10 or something(wrappers are only for transformation of types, they don't provide any additional functionality).
Long term we want to move towards to complete non-recursive parsing, this is a good stop gap solution to address the current issues.