Skip to main content

Module state

Module state 

Source
Expand description

Implementations of the v1 API traits and the v2 tonic service traits, both reading the one data source this type wraps.

Structsยง

NodeApiStateImpl
Node API state implementation

Constantsยง

FETCH_TIMEOUT ๐Ÿ”’
Timeout for failing requests due to missing data.

Traitsยง

StateSignatureDataSourceErased ๐Ÿ”’
SubmitDataSourceErased ๐Ÿ”’
Network-agnostic submit hook used by the axum wrapper. The original SubmitDataSource<N, P> trait is parameterized by the network type; this erased trait lets NodeApiStateImpl avoid carrying those parameters.

Functionsยง

bad_request ๐Ÿ”’
block_id_to_hs ๐Ÿ”’
classify_query_error ๐Ÿ”’
enforce_range ๐Ÿ”’
fetch_supply_inputs ๐Ÿ”’
large_object_range_limit ๐Ÿ”’
lc_error ๐Ÿ”’
Convert a query-service error to an AvailabilityError-carrying anyhow error so the HTTP layer returns the status carried by the error (400/404) instead of 500.
lc_large_object_range_limit ๐Ÿ”’
lc_leaf_proof_chain_limit ๐Ÿ”’
Bounds the leaves in a single leaf proof, and so the memory to build and serialize it.
node_window_limit ๐Ÿ”’
not_found ๐Ÿ”’
payload_id_to_hs ๐Ÿ”’
range_exceeded ๐Ÿ”’
small_object_range_limit ๐Ÿ”’