(tx, height)
| 70 | |
| 71 | |
| 72 | def 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 | |
| 79 | CLTV_HEIGHT = 111 |
no test coverage detected