From 74b9c963d07876e2ad8d56620ab71c77b9d60899 Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Tue, 9 Jun 2026 20:00:00 +0800 Subject: [PATCH] cmd/devp2p: fix getblockbodies request id error Include the actual and expected request IDs in the GetBlockBodies response failure message. This also fixes the typo in the diagnostic so mismatched responses report a useful error. --- cmd/devp2p/internal/ethtest/suite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/devp2p/internal/ethtest/suite.go b/cmd/devp2p/internal/ethtest/suite.go index 4bcfd06d7f..8c9c59ed51 100644 --- a/cmd/devp2p/internal/ethtest/suite.go +++ b/cmd/devp2p/internal/ethtest/suite.go @@ -413,7 +413,7 @@ func (s *Suite) TestGetBlockBodies(t *utesting.T) { t.Fatalf("error reading block bodies msg: %v", err) } if got, want := resp.RequestId, req.RequestId; got != want { - t.Fatalf("unexpected request id in respond", got, want) + t.Fatalf("unexpected request id in response: got %d, want %d", got, want) } if resp.List.Len() != len(req.GetBlockBodiesRequest) { t.Fatalf("wrong bodies in response: expected %d bodies, got %d", len(req.GetBlockBodiesRequest), resp.List.Len())