mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Fixing chain error type
This commit is contained in:
parent
4e49b85b82
commit
275e986490
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue