2016-11-29 00:54:32 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2018-02-06 00:17:03 +04:00
|
|
|
(* Copyright (c) 2014 - 2018. *)
|
2016-11-29 00:54:32 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
type shell_header = {
|
|
|
|
level: Int32.t ;
|
|
|
|
proto_level: int ; (* uint8 *)
|
|
|
|
predecessor: Block_hash.t ;
|
|
|
|
timestamp: Time.t ;
|
|
|
|
validation_passes: int ; (* uint8 *)
|
|
|
|
operations_hash: Operation_list_list_hash.t ;
|
2018-04-16 02:44:21 +04:00
|
|
|
fitness: Fitness.t ;
|
2017-12-05 18:19:22 +04:00
|
|
|
context: Context_hash.t ;
|
2017-11-27 09:13:12 +04:00
|
|
|
}
|
2016-11-29 00:54:32 +04:00
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
val shell_header_encoding: shell_header Data_encoding.t
|
2017-01-14 16:13:59 +04:00
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
type t = {
|
|
|
|
shell: shell_header ;
|
2018-02-16 17:05:46 +04:00
|
|
|
protocol_data: MBytes.t ;
|
2017-01-14 16:13:59 +04:00
|
|
|
}
|
2017-11-27 09:13:12 +04:00
|
|
|
|
|
|
|
include S.HASHABLE with type t := t
|
|
|
|
and type hash := Block_hash.t
|
|
|
|
val of_bytes_exn: MBytes.t -> t
|