Skip to main content

oversized_push_refusal

Function oversized_push_refusal 

Source
pub async fn oversized_push_refusal<P: SyncPeer>(peer: &P) -> RefusalsOf<P>
Expand description

The oversized-push refusal, provoked on peer and declared [FailureClass::Split].

The body every fixture whose peer honours its own [PeerLimits] would otherwise write out: build batch_over_the_limit from what the peer declares, push it, and record what came back. A fixture whose peer classifies an oversized push as something other than Split declares its refusal by hand instead.

ยงErrors

A Violation of SY-36 if batch_over_the_limit cannot build the batch.