Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Commit-Boost
Copyright (c) 2025 Commit-Boost

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 6 additions & 6 deletions crates/pbs/src/mev_boost/submit_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,20 +176,20 @@ async fn send_submit_block(
}

if let Some(blobs) = &block_response.data.blobs_bundle {
let expected_committments = &signed_blinded_block.message.body.blob_kzg_commitments;
if expected_committments.len() != blobs.blobs.len() ||
expected_committments.len() != blobs.commitments.len() ||
expected_committments.len() != blobs.proofs.len()
let expected_commitments = &signed_blinded_block.message.body.blob_kzg_commitments;
if expected_commitments.len() != blobs.blobs.len() ||
expected_commitments.len() != blobs.commitments.len() ||
expected_commitments.len() != blobs.proofs.len()
{
return Err(PbsError::Validation(ValidationError::KzgCommitments {
expected_blobs: expected_committments.len(),
expected_blobs: expected_commitments.len(),
got_blobs: blobs.blobs.len(),
got_commitments: blobs.commitments.len(),
got_proofs: blobs.proofs.len(),
}));
}

for (i, comm) in expected_committments.iter().enumerate() {
for (i, comm) in expected_commitments.iter().enumerate() {
// this is safe since we already know they are the same length
if *comm != blobs.commitments[i] {
return Err(PbsError::Validation(ValidationError::KzgMismatch {
Expand Down