Skip to content

Commit 7e898d4

Browse files
committed
remove the requests from eth rpc and blockfetcher p2p
1 parent a62ed49 commit 7e898d4

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

packages/client/src/rpc/modules/eth.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ const toJSONRPCBlock = async (
153153
excessBlobGas: header.excessBlobGas,
154154
parentBeaconBlockRoot: header.parentBeaconBlockRoot,
155155
requestsRoot: header.requestsRoot,
156-
requests: block.requests?.map((req) => bytesToHex(req.serialize())),
157156
}
158157
}
159158

packages/client/src/sync/fetcher/blockfetcher.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class BlockFetcher extends BlockFetcherBase<Block[], Block> {
7373
`Requested blocks=${blocksRange} from ${peerInfo} (received: ${headers.length} headers / ${bodies.length} bodies)`,
7474
)
7575
const blocks: Block[] = []
76-
for (const [i, [txsData, unclesData, withdrawalsData, requestsData]] of bodies.entries()) {
76+
for (const [i, [txsData, unclesData, withdrawalsData]] of bodies.entries()) {
7777
const header = headers[i]
7878
if (
7979
(!equalsBytes(header.transactionsTrie, KECCAK256_RLP) && txsData.length === 0) ||
@@ -92,9 +92,6 @@ export class BlockFetcher extends BlockFetcherBase<Block[], Block> {
9292
if (withdrawalsData !== undefined) {
9393
values.push(withdrawalsData)
9494
}
95-
if (requestsData !== undefined) {
96-
values.push(requestsData)
97-
}
9895
// Supply the common from the corresponding block header already set on correct fork
9996
const block = createBlockFromBytesArray(values, { common: headers[i].common })
10097
// Only validate the data integrity

0 commit comments

Comments
 (0)