Skip to content

Commit 810a25b

Browse files
Update crates/net/p2p/src/req_resp/handlers.rs
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 5e11024 commit 810a25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/net/p2p/src/req_resp/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ async fn handle_blocks_by_root_request(
110110

111111
// TODO: Support multiple blocks per request (currently only handles first root)
112112
// The protocol supports up to 1024 roots, but our response type only holds one block.
113-
let Some(root) = request.first() else {
113+
let Some(root) = request.roots.first() else {
114114
debug!(%peer, "BlocksByRoot request with no roots");
115115
return;
116116
};

0 commit comments

Comments
 (0)