diff options
| author | Esteban Ordano <[email protected]> | 2015-07-02 18:38:34 -0700 |
|---|---|---|
| committer | Esteban Ordano <[email protected]> | 2015-07-06 13:09:37 -0700 |
| commit | cb54d17355864fa08826d6511a0d7692b21ef2c9 (patch) | |
| tree | 70157b543125853fab7a4a00dba2643889a64bab /src/script/script.cpp | |
| parent | tests: fix txn_clone.py (retry) (diff) | |
| download | discoin-cb54d17355864fa08826d6511a0d7692b21ef2c9.tar.xz discoin-cb54d17355864fa08826d6511a0d7692b21ef2c9.zip | |
CLTV: Add more tests to improve coverage
Four cases included:
* The CLTV operand type mismatches the tx locktime. In the script it is
1 (interpreted as block height), but in the tx is 500000000
(interpreted as date)
* The stack is empty when executing OP_CLTV
* The tx is final by having only one input with MAX_INT sequence number
* The operand for CLTV is negative (after OP_0 OP_1 OP_SUB)
Diffstat (limited to 'src/script/script.cpp')
0 files changed, 0 insertions, 0 deletions