Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(wallet): create tx locktime cltv for a specific time #1682

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

f3r10
Copy link
Contributor

@f3r10 f3r10 commented Nov 13, 2024

Description

This PR adds a unit test that checks the satisfaction of timestamp-based timelocks. The goal is to test the absolute time therefore the variable passed to the miniscript fragment after has to be equal to or greater that 500_000_000 otherwise it would be checking the block height.

Notes to the reviewers

This unit test tries to check if #642 is still an issue.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

@f3r10 f3r10 changed the title test: create tx locktime cltv for a specific time test(wallet): create tx locktime cltv for a specific time Nov 13, 2024
@f3r10 f3r10 marked this pull request as ready for review November 13, 2024 16:44
crates/wallet/src/test_utils.rs Outdated Show resolved Hide resolved
crates/wallet/src/test_utils.rs Outdated Show resolved Hide resolved
@notmandatory notmandatory added this to the 1.0.0-beta milestone Nov 15, 2024
@notmandatory notmandatory removed this from the 1.0.0-beta milestone Nov 21, 2024
@f3r10 f3r10 force-pushed the test_timelock_descriptors branch from a636a6b to af30026 Compare December 21, 2024 21:00
Copy link
Contributor

@ValuedMammal ValuedMammal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK af30026

@ValuedMammal ValuedMammal added this to the 1.1.0 milestone Jan 3, 2025
Copy link
Contributor

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK af30026

I just left a suggestion to fix a typo on the code comment.

crates/wallet/src/test_utils.rs Outdated Show resolved Hide resolved
@f3r10 f3r10 force-pushed the test_timelock_descriptors branch 2 times, most recently from fd5d91a to 5471c3b Compare January 19, 2025 17:06
@ValuedMammal
Copy link
Contributor

In 5471c3b: the commit doesn't appear to be signed

@f3r10 f3r10 force-pushed the test_timelock_descriptors branch from 5471c3b to f38b3eb Compare January 21, 2025 21:37
@f3r10 f3r10 force-pushed the test_timelock_descriptors branch from f38b3eb to 2c11d46 Compare January 21, 2025 21:38
Copy link
Contributor

@ValuedMammal ValuedMammal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 2c11d46

Thanks @f3r10

@ValuedMammal ValuedMammal merged commit 43f0f8d into bitcoindevkit:master Jan 21, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants