Skip to main content

MAX_ACCOUNT_REQUIREMENTS

Constant MAX_ACCOUNT_REQUIREMENTS 

Source
const MAX_ACCOUNT_REQUIREMENTS: usize = 1_000;
Expand description

Maximum number of account requirements accepted from a single bundle’s accounts/requirements.json. A real bundle needs a handful at most — one per distinct external account it depends on. Exists to bound the RPC handler’s downstream per-provider account-lookup work (codex P1, PR #2379 round 4): an untrusted archive’s requirements array, unbounded, could otherwise drive a synchronous store query for every row.