eth/catalyst: pass context to ForkchoiceUpdatedV3 in benchmarks

This commit is contained in:
jonny rhea 2026-05-01 09:07:41 -05:00
parent 5f909aa1d1
commit bf3464a34c

View file

@ -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)
}