package octez-shell-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-shell-libs.shell-services/Tezos_shell_services/Block_services/index.html
Module Tezos_shell_services.Block_services
Source
type block = [
| `Genesis
(*The genesis block
*)| `Head of int
(*The
*)n
th predecessor of thecurrent_head
block ifn > 0
. Ifn = 0
, represents thecurrent_head
.n
should not be negative since thecurrent_head
does not have successors.| `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int
(*The
*)n
th predecessor of thecaboose
, thecheckpoint
or thesavepoint
ifn > 0
. Ifn = 0
, represents the block itself. Ifn < 0
, represents then
th successor.| `Hash of Tezos_base.TzPervasives.Block_hash.t * int
(*The
*)n
th predecessor of the block of givenhash
ifn > 0
. Ifn = 0
, represents the block itself. Otherwise, ifn < 0
, represents then
th successor.| `Level of Int32.t
(*The block at a given
*)level
]
A representation of a block's position relatively to a known block of a chain.
A block range in the form level..level
. Currently, this function supports only level..level
.
val raw_context_insert :
(string list * Proof.raw_context) ->
Proof.raw_context ->
Proof.raw_context
raw_context_insert (k,v) c
inserts a key-value pair (k,v)
in a raw_context c
. If k
collides to a existing sub-tree in c
, the sub-tree is replaced by a new key-value pair.
type protocols = {
current_protocol : Tezos_base.TzPervasives.Protocol_hash.t;
next_protocol : Tezos_base.TzPervasives.Protocol_hash.t;
}
val protocols :
Tezos_rpc.Context.simple ->
?chain:chain ->
?block:block ->
unit ->
protocols Tezos_base.TzPervasives.tzresult Lwt.t