Merge pull request #35 from apoelstra/newops

add constants for OP_CLTV and OP_CSV
This commit is contained in:
Andrew Poelstra 2017-12-21 01:21:09 +00:00 committed by GitHub
commit 01e164025a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
[package] [package]
name = "bitcoin" name = "bitcoin"
version = "0.10.5" version = "0.10.6"
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"] authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
license = "CC0-1.0" license = "CC0-1.0"
homepage = "https://github.com/apoelstra/rust-bitcoin/" homepage = "https://github.com/apoelstra/rust-bitcoin/"

View File

@ -632,6 +632,10 @@ impl serde::Serialize for All {
pub static OP_FALSE: All = All::OP_PUSHBYTES_0; pub static OP_FALSE: All = All::OP_PUSHBYTES_0;
/// Number 1 is also TRUE /// Number 1 is also TRUE
pub static OP_TRUE: All = All::OP_PUSHNUM_1; 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 /// Broad categories of opcodes with similar behavior
#[derive(Copy, Clone, PartialEq, Eq, Debug)] #[derive(Copy, Clone, PartialEq, Eq, Debug)]