Fixing chain error type

This commit is contained in:
Ignotus Peverell 2017-10-04 02:57:56 +00:00
parent 4e49b85b82
commit 275e986490
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211

View file

@ -20,7 +20,7 @@ use secp;
use secp::pedersen::Commitment; use secp::pedersen::Commitment;
use grin_store as store; use grin_store as store;
use core::core::{Block, BlockHeader, Output}; use core::core::{Block, BlockHeader, block, Output};
use core::core::hash::{Hash, Hashed}; use core::core::hash::{Hash, Hashed};
use core::core::target::Difficulty; use core::core::target::Difficulty;
use core::ser; use core::ser;
@ -54,7 +54,7 @@ pub enum Error {
/// The proof of work is invalid /// The proof of work is invalid
InvalidPow, InvalidPow,
/// The block doesn't sum correctly or a tx signature is invalid /// The block doesn't sum correctly or a tx signature is invalid
InvalidBlockProof(secp::Error), InvalidBlockProof(block::Error),
/// Block time is too old /// Block time is too old
InvalidBlockTime, InvalidBlockTime,
/// Block height is invalid (not previous + 1) /// Block height is invalid (not previous + 1)