forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
psbt: database migration for converting last_tx to a psbt
We update the `last_tx` in `channels` to be psbt format, instead of a linearized transaction. We need the amount of the input populated, which we have since this is the 'funding' amount. Ideally we'd also populate the funding scriptPubkey, but to do that we'd need to access the HSM module to fetch our local funding pubkey, which isn't initialized at the time that the database migrations are run. Since the only field the HSM uses currently when signing these is the amount field, it's ok to just leave it out. needs a test!
- Loading branch information
Showing
3 changed files
with
84 additions
and
0 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