Skip to content

taprpc: support custom lock ID and expiration in CommitVirtualPsbts #1475

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

Merged
merged 2 commits into from
Apr 25, 2025

Conversation

bhandras
Copy link
Member

This change extends the CommitVirtualPsbts RPC to accept an optional custom UTXO lock ID and lease expiration. By enabling callers to define these parameters explicitly, the wallet can better coordinate UTXO locking across concurrent workflows and provide safer, more flexible transaction retargeting during PSBT construction.

If unset, the default internal lock ID and 10-minute expiration remain in effect, preserving backward compatibility.

depends on: lightningnetwork/lnd#9724

@coveralls
Copy link

coveralls commented Apr 17, 2025

Pull Request Test Coverage Report for Build 14645882357

Details

  • 0 of 14 (0.0%) changed or added relevant lines in 2 files are covered.
  • 32 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.02%) to 28.683%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rpcserver.go 0 4 0.0%
taprpc/assetwalletrpc/assetwallet.pb.go 0 10 0.0%
Files with Coverage Reduction New Missed Lines %
commitment/tap.go 2 72.05%
asset/mock.go 5 64.57%
tapdb/multiverse.go 6 53.03%
asset/asset.go 19 48.07%
Totals Coverage Status
Change from base Build 14638699557: -0.02%
Covered Lines: 26699
Relevant Lines: 93082

💛 - Coveralls

@bhandras bhandras force-pushed the commitvirtualpsbts-custom-lock branch from 5b19896 to e41c34c Compare April 17, 2025 15:43
@bhandras
Copy link
Member Author

bhandras commented Apr 17, 2025

Build is failing as it is pending updates from #1478
Please do not review yet.

Update: ready for review.

@bhandras bhandras force-pushed the commitvirtualpsbts-custom-lock branch 2 times, most recently from 7f64735 to f4ca881 Compare April 23, 2025 14:06
This change extends the CommitVirtualPsbts RPC to accept an optional
custom UTXO lock ID and lease expiration. By enabling callers to define
these parameters explicitly, the wallet can better coordinate UTXO
locking across concurrent workflows and provide safer, more flexible
transaction retargeting when using virtual PSBTs.

If unset, the default internal lock ID and 10-minute expiration remain
in effect, preserving backward compatibility.
@bhandras bhandras force-pushed the commitvirtualpsbts-custom-lock branch from f4ca881 to 51a9f0b Compare April 24, 2025 15:03
@bhandras bhandras requested review from GeorgeTsagk and guggero April 24, 2025 15:03
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@GeorgeTsagk GeorgeTsagk added this pull request to the merge queue Apr 25, 2025
@guggero guggero removed this pull request from the merge queue due to a manual request Apr 25, 2025
@guggero guggero merged commit d9dd3c0 into lightninglabs:main Apr 25, 2025
18 checks passed
@bhandras bhandras deleted the commitvirtualpsbts-custom-lock branch April 25, 2025 13:09
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.

4 participants