MCPcopy Create free account
hub / github.com/ElementsProject/elements / cltv_validate

Function cltv_validate

test/functional/feature_cltv.py:72–76  ·  view source on GitHub ↗
(tx, height)

Source from the content-addressed store, hash-verified

70
71
72def cltv_validate(tx, height):
73 # Modify the signature in vin 0 and nSequence/nLockTime of the tx to pass CLTV
74 scheme = [[CScriptNum(height), OP_CHECKLOCKTIMEVERIFY, OP_DROP], 0, height]
75
76 cltv_modify_tx(tx, prepend_scriptsig=scheme[0], nsequence=scheme[1], nlocktime=scheme[2])
77
78
79CLTV_HEIGHT = 111

Callers 1

run_testMethod · 0.70

Calls 2

CScriptNumClass · 0.90
cltv_modify_txFunction · 0.85

Tested by

no test coverage detected