1
0

txbatcher: add comment to _to_pay_after

This commit is contained in:
SomberNight
2025-08-21 15:15:08 +00:00
parent 139508e2b4
commit 6d99717d5b
3 changed files with 6 additions and 1 deletions

View File

@@ -303,6 +303,8 @@ class TxBatch(Logger):
def _to_pay_after(self, tx: Optional[PartialTransaction]) -> Sequence[PartialTxOutput]:
if not tx:
return self.batch_payments
# note: the below is equivalent to
# to_pay = multiset(self.batch_payments) - multiset(tx.outputs())
to_pay = []
outputs = copy.deepcopy(tx.outputs())
for x in self.batch_payments: