Module limiter

Module limiter 

Source
Expand description

Limit the size of a parameter list for a specific parameter

Used for:

  1. the external facing RPC
  2. limiting SQL statements not exceeding parameter limits

The 1st is good to terminate invalid requests as early as possible, where the second is both a fallback and a safeguard not benching pointless parameter combinations.

Structs§

QueryLimitError
QueryParamAccountIdLimit
Used for the following RPC endpoints
QueryParamBlockLimit
Only used internally, not exposed via public RPC.
QueryParamNoteCommitmentLimit
Used for internal queries retrieving note inclusion proofs by commitment.
QueryParamNoteIdLimit
Used for the following RPC endpoints select_notes_by_id
QueryParamNoteTagLimit
Used for the following RPC endpoints
QueryParamNullifierLimit
Used for the following RPC endpoints
QueryParamNullifierPrefixLimit
Used for the following RPC endpoints

Traits§

QueryParamLimiter
Checks limits against the desired query parameters, per query parameter and bails if they exceed a defined value.