Skip to content

Commit e2ff23b

Browse files
committed
fiuxp! allow larger trigger/recovery output amounts
Allow trigger/recovery output nValues to exceed the amounts supplied by constituent vault inputs. This allows future compatibility for e.g. trigger collateral.
1 parent cb50446 commit e2ff23b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bip-0345.mediawiki

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ def validate_deferred_checks(checks: [DeferredCheck], tx: Transaction) -> bool:
351351
out_map[c.vout_idx] += c.input_amount
352352

353353
for (vout_idx, amount_sats) in out_map.items():
354-
if tx.vout[vout_idx].nValue != amount_sats:
354+
# Trigger/recovery value can be greater than the constituent vault input
355+
# amounts.
356+
if tx.vout[vout_idx].nValue < amount_sats:
355357
return False
356358

357359
return True

0 commit comments

Comments
 (0)