For CLTV coins check the lock value relative to the current time rather than the bid creation time.
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user