package octez-shell-libs
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Octez shell libraries
Install
dune-project
Dependency
Authors
Maintainers
Sources
octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-shell-libs.shell/Tezos_shell/Prevalidator_bounding/Make/index.html
Module Prevalidator_bounding.MakeSource
Build a mempool bounding module.
Parameters
module Proto : Tezos_protocol_environment.PROTOCOLSignature
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)
resultTry 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_operationsfunction) and have been removed from the state to make room for the new operation, or - an
Errorwhen 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_overtakeaccording tocompare_operations(but with an unchanged byte size), then it could be successfully added to the state. TheErrorcan only containNonewhen 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_bytesby 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