fix rpc types to free the blobs (#4059)

* rename to follow name in spec

* use roots and indexes

* wip

* fix req/resp types

* move blob identifier to consensus types
This commit is contained in:
Divma
2023-03-07 16:28:45 -05:00
committed by GitHub
parent 63011c5bca
commit 545532a883
8 changed files with 51 additions and 49 deletions

View File

@@ -224,7 +224,7 @@ impl<T: BeaconChainTypes> Worker<T> {
async move {
let mut send_block_count = 0;
let mut send_response = true;
for root in request.block_roots.iter() {
for root in request.blob_ids.iter() {
match self
.chain
.get_block_and_blobs_checking_early_attester_cache(root)
@@ -329,7 +329,7 @@ impl<T: BeaconChainTypes> Worker<T> {
self.log,
"Received BlobsByRoot Request";
"peer" => %peer_id,
"requested" => request.block_roots.len(),
"requested" => request.blob_ids.len(),
"returned" => send_block_count
);