-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
onchaind: tell lightningd correct nSequence value for local leases.
If the nSequence in the tx it produces is not at least the value we test in the script, the tx will always fail: ``` error code: -26\nerror message:\nmandatory-script-verify-flag-failed (Locktime requirement not satisfied) ``` If we have a lease, the nSequence is max(lease-time-remaining, to-self-delay), so have onchaind tell lightningd the correct nSequence. Fixes: #7460 Reported-by: https://github.com/pabpas Signed-off-by: Rusty Russell <[email protected]> Changelog-EXPERIMENTAL: Correctly collect our own (delayed) funds if we have a unilateral close when we are still offering a lease.
- Loading branch information
1 parent
5078e79
commit 79b28eb
Showing
5 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters