Module Mavkit_crawler.Reorg

type '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.

val no_reorg : 'a t
val encoding : 'a Mavryk_base.TzPervasives.Data_encoding.t -> 'a t Mavryk_base.TzPervasives.Data_encoding.t
val map : ('a -> 'b) -> 'a t -> 'b t
val map_es : ('a -> 'b Mavryk_base.TzPervasives.tzresult Lwt.t) -> 'a t -> 'b t Mavryk_base.TzPervasives.tzresult Lwt.t
val map_ep : ('a -> 'b Mavryk_base.TzPervasives.tzresult Lwt.t) -> 'a t -> 'b t Mavryk_base.TzPervasives.tzresult Lwt.t