2018-01-26 16:10:20 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2018-02-06 00:17:03 +04:00
|
|
|
(* Copyright (c) 2014 - 2018. *)
|
2018-01-26 16:10:20 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
|
|
|
type block_error =
|
|
|
|
| Cannot_parse_operation of Operation_hash.t
|
|
|
|
| Invalid_fitness of { expected: Fitness.t ; found: Fitness.t }
|
|
|
|
| Non_increasing_timestamp
|
|
|
|
| Non_increasing_fitness
|
|
|
|
| Invalid_level of { expected: Int32.t ; found: Int32.t }
|
|
|
|
| Invalid_proto_level of { expected: int ; found: int }
|
|
|
|
| Replayed_operation of Operation_hash.t
|
|
|
|
| Outdated_operation of
|
|
|
|
{ operation: Operation_hash.t;
|
|
|
|
originating_block: Block_hash.t }
|
2018-02-16 04:26:24 +04:00
|
|
|
| Expired_chain of
|
|
|
|
{ chain_id: Chain_id.t ;
|
2018-01-26 16:10:20 +04:00
|
|
|
expiration: Time.t ;
|
|
|
|
timestamp: Time.t ;
|
|
|
|
}
|
|
|
|
| Unexpected_number_of_validation_passes of int (* uint8 *)
|
|
|
|
| Too_many_operations of { pass: int; found: int; max: int }
|
|
|
|
| Oversized_operation of { operation: Operation_hash.t;
|
|
|
|
size: int; max: int }
|
2018-01-31 16:55:19 +04:00
|
|
|
| Unallowed_pass of { operation: Operation_hash.t ;
|
|
|
|
pass: int ;
|
|
|
|
allowed_pass: int list }
|
2018-04-21 01:04:33 +04:00
|
|
|
| Cannot_parse_block_header
|
2018-01-26 16:10:20 +04:00
|
|
|
|
|
|
|
type error +=
|
|
|
|
| Invalid_block of
|
|
|
|
{ block: Block_hash.t ; error: block_error }
|
|
|
|
| Unavailable_protocol of
|
|
|
|
{ block: Block_hash.t ; protocol: Protocol_hash.t }
|
|
|
|
| Inconsistent_operations_hash of
|
|
|
|
{ block: Block_hash.t ;
|
|
|
|
expected: Operation_list_list_hash.t ;
|
|
|
|
found: Operation_list_list_hash.t }
|