Expand description
Implementations of the v1 API traits and the v2 tonic service traits, both reading the one data source this type wraps.
Structsยง
- Node
ApiState Impl - Node API state implementation
Constantsยง
- FETCH_
TIMEOUT ๐ - Timeout for failing requests due to missing data.
Traitsยง
- State
Signature ๐Data Source Erased - Submit
Data ๐Source Erased - Network-agnostic submit hook used by the axum wrapper. The original
SubmitDataSource<N, P>trait is parameterized by the network type; this erased trait letsNodeApiStateImplavoid 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