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.
fundpsbt/utxopsbt: handle
excess_as_change
and all
correctly.
If you did call fundpsbt with amount 'all' and `excess_as_change` true, you would get everything going to the change output. That's obviously not the intention, and we'd like to use this to add change outputs even for "all" when have keep emergency reserves. And change the finish_psbt() API to take an explicit change amount: at the moment it's either all or nothing, but that will change with emergency-sat reserves. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
- Loading branch information
1 parent
d882a38
commit e20ceba
Showing
1 changed file
with
57 additions
and
34 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