From bf3464a34cb9661e9a94ab878b07b00e997325fb Mon Sep 17 00:00:00 2001 From: jonny rhea <5555162+jrhea@users.noreply.github.com> Date: Fri, 1 May 2026 09:07:41 -0500 Subject: [PATCH] eth/catalyst: pass context to ForkchoiceUpdatedV3 in benchmarks --- eth/catalyst/api_benchmark_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eth/catalyst/api_benchmark_test.go b/eth/catalyst/api_benchmark_test.go index 3dc3b011de..377e5caa43 100644 --- a/eth/catalyst/api_benchmark_test.go +++ b/eth/catalyst/api_benchmark_test.go @@ -402,7 +402,7 @@ func BenchmarkGetPayloadV5WithBlobs(b *testing.B) { Withdrawals: []*types.Withdrawal{}, BeaconRoot: &beaconRoot, } - resp, err := env.api.ForkchoiceUpdatedV3(fcState, payloadAttr) + resp, err := env.api.ForkchoiceUpdatedV3(context.Background(), fcState, payloadAttr) if err != nil { b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err) } @@ -457,7 +457,7 @@ func BenchmarkNewPayloadV3WithBlobs(b *testing.B) { Withdrawals: []*types.Withdrawal{}, BeaconRoot: &beaconRoot, } - resp, err := env.api.ForkchoiceUpdatedV3(fcState, payloadAttr) + resp, err := env.api.ForkchoiceUpdatedV3(context.Background(), fcState, payloadAttr) if err != nil { b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err) } @@ -534,7 +534,7 @@ func BenchmarkForkchoiceUpdatedWithBlobPayload(b *testing.B) { Withdrawals: []*types.Withdrawal{}, BeaconRoot: &beaconRoot, } - resp, err := env.api.ForkchoiceUpdatedV3(fcState, payloadAttr) + resp, err := env.api.ForkchoiceUpdatedV3(context.Background(), fcState, payloadAttr) if err != nil { b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err) } @@ -582,7 +582,7 @@ func BenchmarkFullBlobWorkflowOsaka(b *testing.B) { Withdrawals: []*types.Withdrawal{}, BeaconRoot: &beaconRoot, } - resp, err := env.api.ForkchoiceUpdatedV3(fcState, payloadAttr) + resp, err := env.api.ForkchoiceUpdatedV3(context.Background(), fcState, payloadAttr) if err != nil { b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err) } @@ -657,7 +657,7 @@ func BenchmarkGetPayloadV5RPCServerOnly(b *testing.B) { Withdrawals: []*types.Withdrawal{}, BeaconRoot: &beaconRoot, } - resp, err := env.api.ForkchoiceUpdatedV3(fcState, payloadAttr) + resp, err := env.api.ForkchoiceUpdatedV3(context.Background(), fcState, payloadAttr) if err != nil { b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err) }