Mavryk_client_base.Client_confirmationsval wait_for_operation_inclusion :
Client_context.full ->
chain:Mavryk_shell_services.Chain_services.chain ->
?predecessors:int ->
?confirmations:int ->
?branch:Mavryk_base.TzPervasives.Block_hash.t ->
Mavryk_base.TzPervasives.Operation_hash.t ->
(Mavryk_base.TzPervasives.Block_hash.t * int * int)
Mavryk_base.TzPervasives.tzresult
Lwt.twait_for_operation_inclusion chain ~predecessors ~confirmations
oph waits for `oph` to appears in the main chain with at least `confirmations`. It returns the hash of the block that contains the operation and the operation position in the block.
This functions also looks for the operations in the `predecessors` of the initial chain head.
val lookup_operation_in_previous_blocks :
Client_context.full ->
chain:Mavryk_shell_services.Block_services.chain ->
predecessors:int ->
Mavryk_base.TzPervasives.Operation_list_hash.elt ->
(Mavryk_base.TzPervasives.Block_hash.t * int * int) option
Mavryk_base.TzPervasives.tzresult
Lwt.tlookup an operation in predecessors previous blocks, starting from head
val wait_for_bootstrapped :
?retry:
((Client_context.full as 'a ->
((Mavryk_base.TzPervasives.Block_hash.t
* Mavryk_base.TzPervasives.Time.Protocol.t)
Lwt_stream.t
* Mavryk_rpc.Context.stopper)
Mavryk_base.TzPervasives.tzresult
Lwt.t) ->
'a ->
((Mavryk_base.TzPervasives.Block_hash.t
* Mavryk_base.TzPervasives.Time.Protocol.t)
Lwt_stream.t
* Mavryk_rpc.Context.stopper)
Mavryk_base.TzPervasives.tzresult
Lwt.t) ->
'a ->
unit Mavryk_base.TzPervasives.tzresult Lwt.treturns when the node consider itself as bootstrapped.
Function retry specifies how to behave in order to connect to the node. The default is the identity which correspond to simply calling the RPC. As an example, the endorser tries 5 times with delays in between attempts when the connection fails.