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
42e1216 Unit test mixed up absolute timelocks (Tobin C. Harding)
e4eb285 Add a minimal timelock module (Tobin C. Harding)
0b62f5e Fix incorrect timelock docs (Tobin C. Harding)
Pull request description:
Currently if we mix up height/time absolute timelocks when filtering policies the result is incorrect (to the best of my understanding).
Add a `timelock` module that includes a single public function for checking if absolute timelocks are the same unit. Use the new function to fix a bug in policy filtering.
- Patch 1 is a docs bug fix
- Patch 2 is the bug fix
- Patch 3 is a unit test patch that fails if its moved before patch 2. Please review the unit test carefully to make sure I'm not confused.
## Note
There is [ongoing discussion](rust-bitcoin/rust-bitcoin#994) around trying to design a suitable timelock API. This PR is an attempt to make some forward progress by taking baby steps _and_ making objective improvements. I decided to do it here in miniscript because it will be easier to iterate on and more obvious when there are concrete usage examples along with each change.
cc dpc
ACKs for top commit:
apoelstra:
ACK 42e1216
Tree-SHA512: 93a55c550a903477cf20f50873d7b778bc36c1eaaf9a31c247d46d931f46100296d3fc3c89cf34ad6b029a7a14f6ae20d8208f22f4536fffe23cd5dab5fa674b
0 commit comments