revert processor change

This commit is contained in:
Petar Radovic 2025-04-22 18:51:26 +02:00 committed by Giacomo Pasini
parent e0970968c9
commit db80e017ad
No known key found for this signature in database
GPG Key ID: FC08489D2D895D4B

View File

@ -20,10 +20,10 @@ impl Processor {
let metadata = Metadata::new([0; 32], block.number.into());
// the node expects blobs to be padded to the next chunk size
let remainder = blob.len() % DaEncoderParams::MAX_BLS12_381_ENCODING_CHUNK_SIZE;
blob.extend(std::iter::repeat_n(
0,
DaEncoderParams::MAX_BLS12_381_ENCODING_CHUNK_SIZE - remainder,
));
blob.extend(
std::iter::repeat(0)
.take(DaEncoderParams::MAX_BLS12_381_ENCODING_CHUNK_SIZE - remainder),
);
if let Err(e) = self.da.disperse(blob, metadata).await {
error!("Failed to disperse block: {e}");
} else {