Skip to content

Include fallback_locktime in locktime accumulation#24

Merged
ValuedMammal merged 1 commit intobitcoindevkit:masterfrom
ValuedMammal:fix/fallback_locktime_acc
Nov 14, 2025
Merged

Include fallback_locktime in locktime accumulation#24
ValuedMammal merged 1 commit intobitcoindevkit:masterfrom
ValuedMammal:fix/fallback_locktime_acc

Conversation

@ValuedMammal
Copy link
Copy Markdown
Collaborator

@ValuedMammal ValuedMammal commented Oct 22, 2025

This allows the caller to specify an absolute locktime greater than may be required by a planned input.

@ValuedMammal ValuedMammal marked this pull request as ready for review October 26, 2025 15:06
Copy link
Copy Markdown
Collaborator

@aagbotemi aagbotemi left a comment

Choose a reason for hiding this comment

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

tACK 6b76766

EDIT: I'm thinking it would be nice, if we could add unit test for this PR

@ValuedMammal ValuedMammal force-pushed the fix/fallback_locktime_acc branch 3 times, most recently from c3b23d2 to 8326277 Compare November 3, 2025 21:38
@aagbotemi aagbotemi added the enhancement New feature or request label Nov 4, 2025
This allows the caller to specify an absolute locktime greater
than may be required by a planned input.

Adds a test `test_fallback_locktime` for testing the expected
locktime when creating a PSBT from a `Selection` and `PsbtParams`.
@ValuedMammal ValuedMammal force-pushed the fix/fallback_locktime_acc branch from 8326277 to de31798 Compare November 11, 2025 17:51
Copy link
Copy Markdown
Collaborator

@aagbotemi aagbotemi left a comment

Choose a reason for hiding this comment

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

Thank you for working on the test. I like the table-driven test approach here, it makes the different scenarios clear. I ran the test and it's working as expected.

Screenshot from 2025-11-12 00-06-02

Copy link
Copy Markdown
Collaborator

@aagbotemi aagbotemi left a comment

Choose a reason for hiding this comment

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

ACK de31798

@ValuedMammal ValuedMammal merged commit d44873f into bitcoindevkit:master Nov 14, 2025
6 checks passed
@ValuedMammal ValuedMammal deleted the fix/fallback_locktime_acc branch December 2, 2025 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants