mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-07 07:28:40 +00:00
eth/catalyst: pass context to ForkchoiceUpdatedV3 in benchmarks
This commit is contained in:
parent
5f909aa1d1
commit
bf3464a34c
1 changed files with 5 additions and 5 deletions
|
|
@ -402,7 +402,7 @@ func BenchmarkGetPayloadV5WithBlobs(b *testing.B) {
|
||||||
Withdrawals: []*types.Withdrawal{},
|
Withdrawals: []*types.Withdrawal{},
|
||||||
BeaconRoot: &beaconRoot,
|
BeaconRoot: &beaconRoot,
|
||||||
}
|
}
|
||||||
resp, err := env.api.ForkchoiceUpdatedV3(fcState, payloadAttr)
|
resp, err := env.api.ForkchoiceUpdatedV3(context.Background(), fcState, payloadAttr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err)
|
b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err)
|
||||||
}
|
}
|
||||||
|
|
@ -457,7 +457,7 @@ func BenchmarkNewPayloadV3WithBlobs(b *testing.B) {
|
||||||
Withdrawals: []*types.Withdrawal{},
|
Withdrawals: []*types.Withdrawal{},
|
||||||
BeaconRoot: &beaconRoot,
|
BeaconRoot: &beaconRoot,
|
||||||
}
|
}
|
||||||
resp, err := env.api.ForkchoiceUpdatedV3(fcState, payloadAttr)
|
resp, err := env.api.ForkchoiceUpdatedV3(context.Background(), fcState, payloadAttr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err)
|
b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err)
|
||||||
}
|
}
|
||||||
|
|
@ -534,7 +534,7 @@ func BenchmarkForkchoiceUpdatedWithBlobPayload(b *testing.B) {
|
||||||
Withdrawals: []*types.Withdrawal{},
|
Withdrawals: []*types.Withdrawal{},
|
||||||
BeaconRoot: &beaconRoot,
|
BeaconRoot: &beaconRoot,
|
||||||
}
|
}
|
||||||
resp, err := env.api.ForkchoiceUpdatedV3(fcState, payloadAttr)
|
resp, err := env.api.ForkchoiceUpdatedV3(context.Background(), fcState, payloadAttr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err)
|
b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err)
|
||||||
}
|
}
|
||||||
|
|
@ -582,7 +582,7 @@ func BenchmarkFullBlobWorkflowOsaka(b *testing.B) {
|
||||||
Withdrawals: []*types.Withdrawal{},
|
Withdrawals: []*types.Withdrawal{},
|
||||||
BeaconRoot: &beaconRoot,
|
BeaconRoot: &beaconRoot,
|
||||||
}
|
}
|
||||||
resp, err := env.api.ForkchoiceUpdatedV3(fcState, payloadAttr)
|
resp, err := env.api.ForkchoiceUpdatedV3(context.Background(), fcState, payloadAttr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err)
|
b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err)
|
||||||
}
|
}
|
||||||
|
|
@ -657,7 +657,7 @@ func BenchmarkGetPayloadV5RPCServerOnly(b *testing.B) {
|
||||||
Withdrawals: []*types.Withdrawal{},
|
Withdrawals: []*types.Withdrawal{},
|
||||||
BeaconRoot: &beaconRoot,
|
BeaconRoot: &beaconRoot,
|
||||||
}
|
}
|
||||||
resp, err := env.api.ForkchoiceUpdatedV3(fcState, payloadAttr)
|
resp, err := env.api.ForkchoiceUpdatedV3(context.Background(), fcState, payloadAttr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err)
|
b.Fatalf("ForkchoiceUpdatedV3 failed: %v", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue