package tezos-injector-016-PtMumbai

  1. Overview
  2. Docs

Type to represent appoximate upper-bounds for the fee and limits, used to compute an upper bound on the size (in bytes) of an operation.

type injection_strategy = [
  1. | `Each_block
    (*

    Inject pending operations after each new L1 block

    *)
  2. | `Delay_block of float
    (*

    `Delay_block f strategy waits for f * the next block time to be elapsed before injecting pending operations. This strategy allows for maximizing the number of the same kind of operations to include in a block.

    *)
]
type unsuccessful_status =
  1. | Other_branch
    (*

    The operation is included in a block that is not on the main chain anymore, because of a reorganization.

    *)
  2. | Backtracked
    (*

    The operation is backtracked because of a further failing operation in the same batch.

    *)
  3. | Skipped
    (*

    The operation is skipped because of a previous failing operation in the same batch.

    *)
  4. | Failed of Tezos_base.TzPervasives.error Tezos_base.TzPervasives.trace
    (*

    The operation failed with the provided error.

    *)

Explanation for unsuccessful operations (that are included in a block).

type retry_action =
  1. | Retry
    (*

    The operation is retried by being re-queued for injection.

    *)
  2. | Forget
    (*

    The operation is forgotten without error.

    *)
  3. | Abort of Tezos_base.TzPervasives.error Tezos_base.TzPervasives.trace
    (*

    The error for the failing operation should be propagated at a higher level.

    *)

Action to be taken for unsuccessful operation.

type injected_info = {
  1. op : L1_operation.t;
    (*

    The L1 manager operation.

    *)
  2. oph : Tezos_base.TzPervasives.Operation_hash.t;
    (*

    The hash of the operation which contains op (this can be an L1 batch of several manager operations).

    *)
}

Information stored about an L1 operation that was injected on a Tezos node.

type included_info = {
  1. op : L1_operation.t;
    (*

    The L1 manager operation.

    *)
  2. oph : Tezos_base.TzPervasives.Operation_hash.t;
    (*

    The hash of the operation which contains op (this can be an L1 batch of several manager operations).

    *)
  3. l1_block : Tezos_base.TzPervasives.Block_hash.t;
    (*

    The hash of the L1 block in which the operation was included.

    *)
  4. l1_level : int32;
    (*

    The level of l1_block.

    *)
}

Information stored about an L1 operation that was included in a Tezos block.

type status =
  1. | Pending of L1_operation.t
    (*

    The operation is pending injection.

    *)
  2. | Injected of injected_info
    (*

    The operation has been injected successfully in the. node

    *)
  3. | Included of included_info
    (*

    The operation has been included in a L1 block.

    *)

Status of an operation in the injector.

module type TAG = sig ... end

Signature for tags used in injector

module type PARAMETERS = sig ... end

Module type for parameter of functor Injector_functor.Make.

module type S = sig ... end

Output signature for functor Injector_functor.Make.

OCaml

Innovation. Community. Security.