remove script interpreter

This commit is contained in:
Andrew Poelstra 2018-03-09 20:30:11 +00:00
parent 0ef9dc3365
commit 21f2baf58e
3 changed files with 1 additions and 3186 deletions

View File

@ -15,12 +15,6 @@ readme = "README.md"
name = "bitcoin" name = "bitcoin"
path = "src/lib.rs" path = "src/lib.rs"
[features]
# Compile broken and complicated script interpreter, as well as
# an unspendability checker which is not broken (I think) but is
# a huge pile of unreviewed code
broken_consensus_code = []
[dependencies] [dependencies]
byteorder = "1.1" byteorder = "1.1"
rand = "0.3" rand = "0.3"

View File

@ -20,12 +20,7 @@
pub mod constants; pub mod constants;
pub mod opcodes; pub mod opcodes;
#[cfg(not(feature="broken_consensus_code"))] pub mod script; pub mod script;
pub mod transaction; pub mod transaction;
pub mod block; pub mod block;
#[cfg(feature="broken_consensus_code")]
/// # Script -- including consensus code
pub mod script {
include!("script_consensus.rs");
}

File diff suppressed because one or more lines are too long