HomePhabricator

CLTV: Add more tests to improve coverage
cb54d1735586Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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)

Details

Provenance
Esteban Ordano <eordano@gmail.com>Authored on Jul 3 2015, 01:38
deadalnixPushed on May 14 2017, 22:04
Parents
rABC56dc70439f4a: tests: fix txn_clone.py (retry)
Branches
Unknown
Tags
Unknown

Event Timeline

Esteban Ordano <eordano@gmail.com> committed rABCcb54d1735586: CLTV: Add more tests to improve coverage (authored by Esteban Ordano <eordano@gmail.com>).Jul 6 2015, 20:09