package tezos-injector-015-PtLimaPt

  1. Overview
  2. Docs

Module Tezos_injector_015_PtLimaPt.Injector_commonSource

The type of signers for operations injected by the injector

Sourcetype 'block reorg = {
  1. old_chain : 'block list;
    (*

    The blocks that were in the old chain and which are not in the new one.

    *)
  2. new_chain : 'block list;
    (*

    The blocks that are now in the new chain. The length of old_chain and new_chain may be different.

    *)
}

Type of chain reorganizations.

Sourceval no_reorg : 'a reorg
Sourceval reorg_encoding : 'a Tezos_base.TzPervasives.Data_encoding.t -> 'a reorg Tezos_base.TzPervasives.Data_encoding.t

fetch_tezos_block ~find_in_cache cctxt hash returns Some block_info given a block hash. Looks for the block using find_in_cache first, and fetches it from the L1 node otherwise. Returns None if no such block hash exists. find_in_cache should be from an instance of Ringo_lwt.Sigs.CACHE_MAP_RESULT.

tezos_reorg fetch ~old_head_hash ~new_head_hash computes the reorganization of L1 blocks from the chain whose head is old_head_hash and the chain whose head new_head_hash.

OCaml

Innovation. Community. Security.