For CLTV coins check the lock value relative to the current time rather than the bid creation time.

This commit is contained in:
tecnovert
2022-10-25 23:22:09 +02:00
parent 18974d9458
commit 50ed1bfccf
2 changed files with 4 additions and 3 deletions

View File

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