Skip to content

fix(selection): Improve handling of fallback locktime#43

Draft
ValuedMammal wants to merge 1 commit intobitcoindevkit:masterfrom
ValuedMammal:fix/improve_fallback_locktime
Draft

fix(selection): Improve handling of fallback locktime#43
ValuedMammal wants to merge 1 commit intobitcoindevkit:masterfrom
ValuedMammal:fix/improve_fallback_locktime

Conversation

@ValuedMammal
Copy link
Collaborator

Description

When setting the locktime of the transaction the fallback locktime was being chained onto the input locktimes causing a LockTypeMismatch error whenever a Block based fallback conflicted with a Time based input requirement. This is fixed so that the fallback is only used if no inputs require an absolute timelock, or if the fallback is the same unit we use the maximum locktime value.

Added a test to check that the fallback is ignored if the lock type is incompatible.

The fallback locktime was being chained onto the input locktimes
causing a `LockTypeMismatch` error whenever a Block based fallback
conflicted with a Time based input CLTV requirement.

This is fixed so that the fallback is used if no inputs require an
absolute timelock, or if the fallback is the same unit we use the
maximum locktime value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant