Block inputs and ouputs Merkle tree validation.

This commit is contained in:
Ignotus Peverell
2017-01-25 11:44:37 -08:00
parent fc2697e7d8
commit 4a034018cb
2 changed files with 9 additions and 1 deletions
-1
View File
@@ -167,7 +167,6 @@ fn validate_header(b: &Block, ctx: &mut BlockContext) -> Result<(), Error> {
/// Fully validate the block content.
fn validate_block(b: &Block, ctx: &mut BlockContext) -> Result<(), Error> {
// TODO check tx merkle tree
let curve = secp::Secp256k1::with_caps(secp::ContextFlag::Commit);
try!(b.verify(&curve).map_err(&Error::InvalidBlockProof));
// TODO check every input exists