Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sidecar): max commitments reached error
Browse files Browse the repository at this point in the history
thedevbirb committed Jul 15, 2024
1 parent a3ccb41 commit afe583b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bolt-sidecar/src/state/execution.rs
Original file line number Diff line number Diff line change
@@ -40,8 +40,8 @@ pub enum ValidationError {
#[error("Too many EIP-4844 transactions in target block")]
Eip4844Limit,
/// The maximum commitments have been reached for the slot.
#[error("Max commitments reached for slot {0}")]
MaxCommitmentsReachedForSlot(usize),
#[error("Max commitments reached for slot {0}: {1}")]
MaxCommitmentsReachedForSlot(u64, usize),
/// The signature is invalid.
#[error("Signature error: {0:?}")]
Signature(#[from] SignatureError),
@@ -153,6 +153,7 @@ impl<C: StateFetcher> ExecutionState<C> {
if let Some(template) = self.get_block_template(req.slot) {
if template.transactions_len() >= self.max_commitments_per_slot.get() {
return Err(ValidationError::MaxCommitmentsReachedForSlot(
self.slot,
self.max_commitments_per_slot.get(),
));
}

0 comments on commit afe583b

Please sign in to comment.