1
0

send tx change to lightning

This commit is contained in:
ThomasV
2023-06-16 10:05:02 +02:00
parent f245b347f1
commit 649ce979ab
16 changed files with 146 additions and 47 deletions

View File

@@ -221,6 +221,8 @@ class CoinChooserBase(Logger):
amounts = [amount for amount in amounts if amount >= dust_threshold]
change = [PartialTxOutput.from_address_and_value(addr, amount)
for addr, amount in zip(change_addrs, amounts)]
for c in change:
c.is_change = True
return change
def _construct_tx_from_selected_buckets(self, *, buckets: Sequence[Bucket],