package tezos-baking-016-PtMumbai

  1. Overview
  2. Docs
Tezos/Protocol: base library for `tezos-baker/accuser`

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b

doc/tezos-baking-016-PtMumbai/Tezos_baking_016_PtMumbai/Operation_selection/index.html

Module Tezos_baking_016_PtMumbai.Operation_selectionSource

Sourcetype simulation_result = {
  1. validation_result : Tezos_protocol_environment.validation_result option;
  2. block_header_metadata : Tezos_protocol_016_PtMumbai.Protocol.Apply_results.block_metadata option;
  3. operations : Tezos_protocol_016_PtMumbai.Protocol.Alpha_context.packed_operation list list;
  4. operations_hash : Tezos_base.TzPervasives.Operation_list_list_hash.t;
}
Sourceval filter_operations_with_simulation : Baking_simulator.incremental -> Baking_configuration.fees_config -> hard_gas_limit_per_block: Tezos_protocol_016_PtMumbai.Protocol.Alpha_context.Gas.Arith.integral -> Operation_pool.Prioritized.t -> simulation_result Tezos_base.TzPervasives.tzresult Lwt.t

filter_operations_with_simulation incremental fees_config ~hard_gas_limit_per_block ops tries to validate prioritized operations (and apply them if incremental has been initialised with an application_state) and filter them regarding the quota of each validation pass. Manager operations are prioritized based on a weight computed from their fees/gas/bytes. filter_operations_with_simulation function returns a simulation_result, containing the validated operation, their resulting operations_hash, optional validation_result and block_header_metadata if the operations were applied.

Sourceval filter_operations_without_simulation : Baking_configuration.fees_config -> hard_gas_limit_per_block: Tezos_protocol_016_PtMumbai.Protocol.Alpha_context.Gas.Arith.integral -> Operation_pool.Prioritized.t -> Tezos_protocol_016_PtMumbai.Protocol.Alpha_context.packed_operation list list

filter_operations_without_simulation fees_config ~hard_gas_limit_per_block ops is similar to filter_operations_with_simulation but does not validate (and apply) operations from ops and returns only the operations instead of a simulation_result.

Hypothesis: operations from ops have previously been validated.

filter_consensus_operations_only incremental ops is similar to filter_operations_with_simulation but only filters consensus operations from ops.