mirror of
https://github.com/bitcoin/bips.git
synced 2025-09-27 19:16:28 +02: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user