mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-19 12:08:05 +00:00
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.
This commit is contained in:
parent
cb50446a65
commit
e2ff23b3f0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user