diff options
author | James O'Beirne <james.obeirne@pm.me> | 2023-06-28 12:06:35 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2023-06-28 12:06:35 -0400 |
commit | e2ff23b3f07215450e75779f7f944d24660a9d47 (patch) | |
tree | 96345a7f6735bae2b91e1f41614da7b90df5749a /bip-0345.mediawiki | |
parent | cb50446a65cb8504499e1ebded22539188612bb3 (diff) |
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.
Diffstat (limited to 'bip-0345.mediawiki')
-rw-r--r-- | bip-0345.mediawiki | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bip-0345.mediawiki b/bip-0345.mediawiki index b7692eb..1447346 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 |