fmt
This commit is contained in:
parent
fe421f7987
commit
ae3e5f73d6
@ -246,7 +246,7 @@ impl<T: BeaconChainTypes> Worker<T> {
|
|||||||
for (known_index, blob) in blob_bundle.into_iter().enumerate() {
|
for (known_index, blob) in blob_bundle.into_iter().enumerate() {
|
||||||
if (known_index as u64) == index {
|
if (known_index as u64) == index {
|
||||||
let blob_sidecar = types::BlobSidecar{
|
let blob_sidecar = types::BlobSidecar{
|
||||||
block_root: beacon_block_root,
|
block_root: beacon_block_root,
|
||||||
index,
|
index,
|
||||||
slot: beacon_block_slot,
|
slot: beacon_block_slot,
|
||||||
block_parent_root: block.parent_root,
|
block_parent_root: block.parent_root,
|
||||||
@ -839,18 +839,23 @@ 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,
|
||||||
block_parent_root: Hash256::zero(),
|
block_parent_root: Hash256::zero(),
|
||||||
proposer_index: 0,
|
proposer_index: 0,
|
||||||
blob,
|
blob,
|
||||||
kzg_commitment: types::KzgCommitment::default(),
|
kzg_commitment: types::KzgCommitment::default(),
|
||||||
kzg_proof: types::KzgProof::default(),
|
kzg_proof: types::KzgProof::default(),
|
||||||
};
|
};
|
||||||
|
|
||||||
blobs_sent += 1;
|
blobs_sent += 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user