From e2ff23b3f07215450e75779f7f944d24660a9d47 Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Wed, 28 Jun 2023 12:06:35 -0400 Subject: [PATCH] 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. --- bip-0345.mediawiki | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bip-0345.mediawiki b/bip-0345.mediawiki index b7692ebe..1447346b 100644 --- a/bip-0345.mediawiki +++ b/bip-0345.mediawiki @@ -351,7 +351,9 @@ def validate_deferred_checks(checks: [DeferredCheck], tx: Transaction) -> bool: out_map[c.vout_idx] += c.input_amount for (vout_idx, amount_sats) in out_map.items(): - if tx.vout[vout_idx].nValue != amount_sats: + # Trigger/recovery value can be greater than the constituent vault input + # amounts. + if tx.vout[vout_idx].nValue < amount_sats: return False return True