protocol: Validate CLTV block values

This commit is contained in:
tecnovert
2022-09-26 19:20:52 +02:00
parent 46d1856f71
commit ef0f5ea1ea
3 changed files with 21 additions and 16 deletions

View File

@@ -12,6 +12,7 @@ from basicswap.script import (
)
INITIATE_TX_TIMEOUT = 40 * 60 # TODO: make variable per coin
ABS_LOCK_BLOCKS_LEEWAY = 5
def buildContractScript(lock_val, secret_hash, pkh_redeem, pkh_refund, op_lock=OpCodes.OP_CHECKSEQUENCEVERIFY):