package octez-shell-libs
Octez shell libraries
Install
Dune Dependency
Authors
Maintainers
Sources
octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-shell-libs.shell/Tezos_shell/Prevalidator_bounding/Make/index.html
Module Prevalidator_bounding.Make
Source
Build a mempool bounding module.
Parameters
module Proto : Tezos_protocol_environment.PROTOCOL
Signature
Internal overview of all the valid operations present in the mempool.
Type Tezos_protocol_environment.PROTOCOL.operation
.
Source
val add_operation :
state ->
config ->
protocol_operation Shell_operation.operation ->
(state * Tezos_base.TzPervasives.Operation_hash.t list,
protocol_operation Shell_operation.operation option)
result
Try and add an operation to the state.
When the state is not full (i.e. adding the operation does not break the max_operations
nor the max_total_bytes
limits), return the updated state and an empty list.
When the state is full, return either:
- an updated state and a list of replaced operations, which are all smaller than the new operation (according to the protocol's
compare_operations
function) and have been removed from the state to make room for the new operation, or - an
Error
when it is not possible to make room for the new operation by removing only operations that are smaller than it. In that case, the error containsop_to_overtake
, that is, the smallest operation such that if the new operation were greater thanop_to_overtake
according tocompare_operations
(but with an unchanged byte size), then it could be successfully added to the state. TheError
can only containNone
when no matter how the new operation compares to others, it can never be added, ie. the new operation has a bigger size thanconfig.max_total_bytes
by itself.
When the operation is already present in the state, do nothing i.e. return the unchanged state and an empty replacement list.
Precondition: the operation has been validated by the protocol in some context (otherwise calling the protocol's compare_operations
function on it may fail).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page