package octez-crawler

  1. Overview
  2. Docs

Module Octez_crawler.ReorgSource

Sourcetype 'block t = {
  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 t
Sourceval encoding : 'a Tezos_base.TzPervasives.Data_encoding.t -> 'a t Tezos_base.TzPervasives.Data_encoding.t
Sourceval map : ('a -> 'b) -> 'a t -> 'b t
Sourceval map_es : ('a -> 'b Tezos_base.TzPervasives.tzresult Lwt.t) -> 'a t -> 'b t Tezos_base.TzPervasives.tzresult Lwt.t
Sourceval map_ep : ('a -> 'b Tezos_base.TzPervasives.tzresult Lwt.t) -> 'a t -> 'b t Tezos_base.TzPervasives.tzresult Lwt.t
OCaml

Innovation. Community. Security.