Skip to main content

MAX_OUTPUTS_OUTCOMES_BATCH

Constant MAX_OUTPUTS_OUTCOMES_BATCH 

Source
const MAX_OUTPUTS_OUTCOMES_BATCH: usize = 1024;
Expand description

Maximum number of output outcomes a single await_outputs_outcomes request may ask for. The endpoint is public and unauthenticated and the requested range is used verbatim to size a Vec, so without a cap one request can trigger a terabyte-scale allocation and abort the guardian process.

Real transactions have a handful of outputs; a client that somehow needs more can still ask for them one outpoint at a time.