fmt
This commit is contained in:
parent
fe421f7987
commit
ae3e5f73d6
@ -839,10 +839,15 @@ impl<T: BeaconChainTypes> Worker<T> {
|
|||||||
match self.chain.get_blobs(&root, data_availability_boundary) {
|
match self.chain.get_blobs(&root, data_availability_boundary) {
|
||||||
Ok(Some(blobs)) => {
|
Ok(Some(blobs)) => {
|
||||||
// TODO: more GROSS code ahead. Reader beware
|
// TODO: more GROSS code ahead. Reader beware
|
||||||
let types::BlobsSidecar{ beacon_block_root, beacon_block_slot, blobs: blob_bundle, kzg_aggregated_proof }: types::BlobsSidecar<_> = blobs;
|
let types::BlobsSidecar {
|
||||||
|
beacon_block_root,
|
||||||
|
beacon_block_slot,
|
||||||
|
blobs: blob_bundle,
|
||||||
|
kzg_aggregated_proof,
|
||||||
|
}: types::BlobsSidecar<_> = blobs;
|
||||||
|
|
||||||
for (blob_index, blob) in blob_bundle.into_iter().enumerate() {
|
for (blob_index, blob) in blob_bundle.into_iter().enumerate() {
|
||||||
let blob_sidecar = types::BlobSidecar{
|
let blob_sidecar = types::BlobSidecar {
|
||||||
block_root: beacon_block_root,
|
block_root: beacon_block_root,
|
||||||
index: blob_index as u64,
|
index: blob_index as u64,
|
||||||
slot: beacon_block_slot,
|
slot: beacon_block_slot,
|
||||||
|
Loading…
Reference in New Issue
Block a user