fix : BlockBodiesResponse

This commit is contained in:
Shivam Sharma 2024-03-20 15:25:35 +05:30
parent feeca914ef
commit d9c6d122e2

View file

@ -571,7 +571,7 @@ func (f *BlockFetcher) loop() {
case res := <-resCh: case res := <-resCh:
res.Done <- nil res.Done <- nil
// Ignoring withdrawals here, since the block fetcher is not used post-merge. // Ignoring withdrawals here, since the block fetcher is not used post-merge.
txs, uncles, _ := res.Res.(*eth.BlockBodiesPacket).Unpack() txs, uncles, _ := res.Res.(*eth.BlockBodiesResponse).Unpack()
f.FilterBodies(peer, txs, uncles, time.Now(), announcedAt) f.FilterBodies(peer, txs, uncles, time.Now(), announcedAt)
case <-timeout.C: case <-timeout.C: