To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
Library
Module
Module type
Parameter
Class
Class type
type mempool = Tezos_client_012_Psithaca.Mockup.M.Block_services.Mempool.t
val monitor_heads :
unit ->
(Tezos_crypto.Block_hash.t * Tezos_base.TzPervasives.Block_header.t)
Tezos_rpc.RPC_answer.stream
The baker and endorser rely on this stream to be notified of new blocks.
val protocols :
Block_services.block ->
Block_services.protocols Tezos_base.TzPervasives.tzresult Lwt.t
Returns current and next protocol for a block.
val header :
Block_services.block ->
Tezos_client_012_Psithaca.Mockup.M.Block_services.block_header
Tezos_base.TzPervasives.tzresult
Lwt.t
header
returns the block header of the block associated to the given block specification.
val operations :
Block_services.block ->
Tezos_client_012_Psithaca.Mockup.M.Block_services.operation list list
Tezos_base.TzPervasives.tzresult
Lwt.t
operations
returns all operations included in the block.
val inject_block :
Tezos_crypto.Block_hash.t ->
Tezos_base.TzPervasives.Block_header.t ->
Tezos_base.TzPervasives.Operation.t Tezos_base.TzPervasives.trace
Tezos_base.TzPervasives.trace ->
unit Tezos_base.TzPervasives.tzresult Lwt.t
inject_block_callback
is called when an RPC is performed on Tezos_shell_services.Injection_services.S.block
, after checking that the block header can be deserialized.
val inject_operation :
Tezos_base.TzPervasives.Operation.t ->
Tezos_crypto.Operation_hash.t Tezos_base.TzPervasives.tzresult Lwt.t
inject_operation
is used by the endorser (or the client) to inject operations, including endorsements.
pending_operations
returns the current contents of the mempool. It is used by the baker to fetch operations to potentially include in the block being baked. These operations might include endorsements. If there aren't enough endorsements, the baker waits on monitor_operations
.
val monitor_operations :
applied:bool ->
branch_delayed:bool ->
branch_refused:bool ->
refused:bool ->
((Tezos_crypto.Operation_hash.t
* Tezos_client_012_Psithaca.Mockup.M.Protocol.operation)
* Tezos_base.TzPervasives.error Tezos_base.TzPervasives.trace option)
list
Tezos_rpc.RPC_answer.stream
Return a stream of list of operations. Used by the baker to wait on endorsements. Invariant: the stream becomes empty when the node changes head.
val list_blocks :
heads:Tezos_crypto.Block_hash.t list ->
length:int option ->
min_date:Tezos_base.TzPervasives.Time.Protocol.t option ->
Tezos_crypto.Block_hash.t list list Tezos_base.TzPervasives.tzresult Lwt.t
Lists block hashes from the chain, up to the last checkpoint, sorted with decreasing fitness. Without arguments it returns the head of the chain. Optional arguments allow to return the list of predecessors of a given block or of a set of blocks.
val live_blocks :
Block_services.block ->
Tezos_crypto.Block_hash.Set.t Tezos_base.TzPervasives.tzresult Lwt.t
List the ancestors of the given block which, if referred to as the branch in an operation header, are recent enough for that operation to be included in the current block.
val rpc_context_callback :
Block_services.block ->
Tezos_protocol_environment.rpc_context Tezos_base.TzPervasives.tzresult Lwt.t
rpc_context_callback
is used in the implementations of several RPCs (see local_services.ml). It should correspond to the rpc_context constructed from the context at the requested block.
val raw_protocol_data :
Block_services.block ->
Bytes.t Tezos_base.TzPervasives.tzresult Lwt.t
Return raw protocol data as a block.
val broadcast_block :
?dests:int list ->
Tezos_crypto.Block_hash.t ->
Tezos_base.TzPervasives.Block_header.t ->
Tezos_base.TzPervasives.Operation.t Tezos_base.TzPervasives.trace
Tezos_base.TzPervasives.trace ->
unit Tezos_base.TzPervasives.tzresult Lwt.t
Broadcast block manually to nodes dests
(given by their number, starting from 0). If dests
is not provided, broadcast to all nodes.
val broadcast_operation :
?dests:int list ->
Tezos_protocol_012_Psithaca.Protocol.Alpha_context.packed_operation ->
unit Tezos_base.TzPervasives.tzresult Lwt.t
Broadcast operation manually to nodes dests
(given by their number, starting from 0). If dests
is not provided, broadcast to all nodes.
val monitor_bootstrapped :
unit ->
(Tezos_crypto.Block_hash.t * Tezos_base.TzPervasives.Time.Protocol.t)
Tezos_rpc.RPC_answer.stream
Simulate waiting for the node to be bootstrapped. Because the simulated node is already bootstrapped, returns the current head immediately.