Module Mavryk_shell_services.Store_errors

type Mavryk_base.TzPervasives.error +=
  1. | Block_not_found of {
    1. hash : Mavryk_base.TzPervasives.Block_hash.t;
    2. distance : int;
    }
  2. | Resulting_context_hash_not_found of {
    1. hash : Mavryk_base.TzPervasives.Block_hash.t;
    2. level : int32;
    }
  3. | Bad_level of {
    1. head_level : Stdlib.Int32.t;
    2. given_level : Stdlib.Int32.t;
    }
  4. | Block_metadata_not_found of Mavryk_base.TzPervasives.Block_hash.t
  5. | Protocol_not_found of {
    1. protocol_level : int;
    }
  6. | Cannot_switch_history_mode of {
    1. previous_mode : History_mode.t;
    2. next_mode : History_mode.t;
    }
  7. | Invalid_head_switch of {
    1. checkpoint_level : int32;
    2. given_head : Mavryk_base.TzPervasives.Block_hash.t * int32;
    }
  8. | Inconsistent_store_state of string
  9. | Inconsistent_operations_hash of {
    1. expected : Mavryk_base.TzPervasives.Operation_list_list_hash.t;
    2. got : Mavryk_base.TzPervasives.Operation_list_list_hash.t;
    }
type cemented_store_inconsistency =
  1. | Missing_cycle of {
    1. low_cycle : string;
    2. high_cycle : string;
    }
  2. | Inconsistent_cycle_start of {
    1. cycle_start : Stdlib.Int32.t;
    2. expected_cycle_start : Stdlib.Int32.t;
    }
  3. | Bad_offset of {
    1. level : int;
    2. cycle : string;
    }
  4. | Unexpected_level of {
    1. block_hash : Mavryk_base.TzPervasives.Block_hash.t;
    2. expected : Stdlib.Int32.t;
    3. got : Stdlib.Int32.t;
    }
  5. | Corrupted_index of Mavryk_base.TzPervasives.Block_hash.t
  6. | Inconsistent_highest_cemented_level of {
    1. highest_cemented_level : Stdlib.Int32.t;
    2. cementing_highwatermark : Stdlib.Int32.t;
    }
val cemented_store_inconsistency_encoding : cemented_store_inconsistency Mavryk_base.TzPervasives.Data_encoding.encoding
type store_block_error =
  1. | Invalid_block
  2. | Invalid_operations_length of {
    1. validation_passes : int;
    2. operations : int;
    }
  3. | Invalid_operations_data_length of {
    1. validation_passes : int;
    2. operations_data : int;
    }
  4. | Inconsistent_operations_lengths of {
    1. operations_lengths : string;
    2. operations_data_lengths : string;
    }
  5. | Invalid_last_preserved_block_level of {
    1. last_preserved_block_level : int32;
    2. genesis_level : int32;
    }
val store_block_error_encoding : store_block_error Mavryk_base.TzPervasives.Data_encoding.encoding
type Mavryk_base.TzPervasives.error +=
  1. | Cannot_write_in_readonly
  2. | Wrong_predecessor of Mavryk_base.TzPervasives.Block_hash.t * int
  3. | Invalid_blocks_to_cement
  4. | Wrong_floating_kind_swap
  5. | Cannot_update_floating_store
  6. | Cannot_instanciate_temporary_floating_store
  7. | Merge_already_running
  8. | Merge_error
  9. | Cannot_load_degraded_store
  10. | Cannot_merge_store of {
    1. status : string;
    }
  11. | Failed_to_init_cemented_block_store of string
  12. | Cannot_cement_blocks_metadata of [ `Empty | `Not_cemented ]
  13. | Cannot_cement_blocks of [ `Empty | `Higher_cemented ]
  14. | Temporary_cemented_file_exists of string
  15. | Inconsistent_cemented_file of string * string
  16. | Inconsistent_cemented_store of cemented_store_inconsistency
  17. | Missing_last_preserved_block
  18. | Inconsistent_block_hash of {
    1. level : Stdlib.Int32.t;
    2. expected_hash : Mavryk_base.TzPervasives.Block_hash.t;
    3. computed_hash : Mavryk_base.TzPervasives.Block_hash.t;
    }
  19. | Inconsistent_block_predecessor of {
    1. block_hash : Mavryk_base.TzPervasives.Block_hash.t;
    2. level : Stdlib.Int32.t;
    3. expected_hash : Mavryk_base.TzPervasives.Block_hash.t;
    4. computed_hash : Mavryk_base.TzPervasives.Block_hash.t;
    }
  20. | Cannot_encode_block of Mavryk_base.TzPervasives.Block_hash.t
  21. | Cannot_store_block of Mavryk_base.TzPervasives.Block_hash.t * store_block_error
  22. | Cannot_checkout_context of Mavryk_base.TzPervasives.Block_hash.t * Mavryk_base.TzPervasives.Context_hash.t
  23. | Cannot_find_protocol of int
  24. | Invalid_genesis_marking
  25. | Cannot_retrieve_savepoint of Stdlib.Int32.t
  26. | Cannot_set_target of Mavryk_base.TzPervasives.Block_hash.t * Stdlib.Int32.t
  27. | Missing_commit_info of string
  28. | Inconsistent_chain_store
  29. | Fork_testchain_not_allowed
  30. | Cannot_fork_testchain of Mavryk_base.TzPervasives.Chain_id.t
  31. | Cannot_load_testchain of string
  32. | Missing_activation_block of Mavryk_base.TzPervasives.Block_hash.t * Mavryk_base.TzPervasives.Protocol_hash.t * History_mode.t
  33. | Inconsistent_protocol_commit_info of Mavryk_base.TzPervasives.Block_hash.t * Mavryk_base.TzPervasives.Protocol_hash.t
  34. | Failed_to_get_live_blocks of Mavryk_base.TzPervasives.Block_hash.t
  35. | Target_mismatch
  36. | Bad_head_invariant
type Mavryk_base.TzPervasives.error +=
  1. | Unexpected_missing_block of {
    1. block_name : string;
    2. level : Stdlib.Int32.t;
    3. hash : Mavryk_base.TzPervasives.Block_hash.t;
    }
  2. | Unexpected_missing_block_metadata of {
    1. block_name : string;
    2. level : Stdlib.Int32.t;
    3. hash : Mavryk_base.TzPervasives.Block_hash.t;
    }
  3. | Unexpected_missing_activation_block of {
    1. block : Mavryk_base.TzPervasives.Block_hash.t;
    2. protocol : Mavryk_base.TzPervasives.Protocol_hash.t;
    }
  4. | Unexpected_missing_protocol of {
    1. protocol_level : int;
    }
  5. | Inconsistent_genesis of {
    1. expected : Mavryk_base.TzPervasives.Block_hash.t;
    2. got : Mavryk_base.TzPervasives.Block_hash.t;
    }
  6. | Inconsistent_cementing_highwatermark of {
    1. highest_cemented_level : Stdlib.Int32.t;
    2. cementing_highwatermark : Stdlib.Int32.t;
    }
  7. | Inconsistent_history_mode of History_mode.t
  8. | Bad_ordering_invariant of {
    1. genesis : Stdlib.Int32.t;
    2. caboose : Stdlib.Int32.t;
    3. savepoint : Stdlib.Int32.t;
    4. cementing_highwatermark : Stdlib.Int32.t option;
    5. checkpoint : Stdlib.Int32.t;
    6. head : Stdlib.Int32.t;
    }
type corruption_kind =
  1. | Inferred_head of Mavryk_base.TzPervasives.Block_hash.t * Stdlib.Int32.t
  2. | Cannot_find_floating_savepoint
  3. | Cannot_find_savepoint_candidate
  4. | Cannot_find_floating_caboose
  5. | Cannot_find_caboose_candidate
  6. | Cannot_find_block_with_metadata
  7. | Cannot_find_activation_block of int
  8. | Missing_genesis
val corruption_kind_encoding : corruption_kind Mavryk_base.TzPervasives.Data_encoding.encoding
val pp_corruption_kind : Stdlib.Format.formatter -> corruption_kind -> unit
type Mavryk_base.TzPervasives.error +=
  1. | Corrupted_store of corruption_kind
type Mavryk_base.TzPervasives.error +=
  1. | Cannot_find_chain_dir of string
  2. | V_3_0_upgrade_missing_floating_block of {
    1. block_hash : Mavryk_base.TzPervasives.Block_hash.t;
    2. block_level : Stdlib.Int32.t;
    3. floating_kind : string;
    }