From b3644b7b6dddfcd5e96c2caf17595d06d6865d4c Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Thu, 21 Dec 2017 01:10:00 +0000 Subject: [PATCH] add constants for OP_CLTV and OP_CSV --- Cargo.toml | 2 +- src/blockdata/opcodes.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3008644f..9a327e31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bitcoin" -version = "0.10.5" +version = "0.10.6" authors = ["Andrew Poelstra "] license = "CC0-1.0" homepage = "https://github.com/apoelstra/rust-bitcoin/" diff --git a/src/blockdata/opcodes.rs b/src/blockdata/opcodes.rs index 73f5f7b9..62285147 100644 --- a/src/blockdata/opcodes.rs +++ b/src/blockdata/opcodes.rs @@ -632,6 +632,10 @@ impl serde::Serialize for All { pub static OP_FALSE: All = All::OP_PUSHBYTES_0; /// Number 1 is also TRUE pub static OP_TRUE: All = All::OP_PUSHNUM_1; +/// check locktime verify +pub static OP_CLTV: All = All::OP_NOP2; +/// check sequence verify +pub static OP_CSV: All = All::OP_NOP3; /// Broad categories of opcodes with similar behavior #[derive(Copy, Clone, PartialEq, Eq, Debug)]