package octez-shell-libs
Octez shell libraries
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
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