mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
adjust comments and whitespace
This commit is contained in:
parent
f73cfaa0e6
commit
30d82125cb
1 changed files with 4 additions and 2 deletions
|
|
@ -198,10 +198,9 @@ func (c *SimulatedBeacon) sealBlock(withdrawals []*types.Withdrawal, timestamp u
|
||||||
version := payloadVersion(c.eth.BlockChain().Config(), timestamp)
|
version := payloadVersion(c.eth.BlockChain().Config(), timestamp)
|
||||||
tracer := otel.Tracer("")
|
tracer := otel.Tracer("")
|
||||||
|
|
||||||
// Create a server span for forkchoiceUpdated with payload attributes,
|
|
||||||
// simulating an incoming engine API request from a real consensus client.
|
|
||||||
var random [32]byte
|
var random [32]byte
|
||||||
rand.Read(random[:])
|
rand.Read(random[:])
|
||||||
|
|
||||||
attribute := &engine.PayloadAttributes{
|
attribute := &engine.PayloadAttributes{
|
||||||
Timestamp: timestamp,
|
Timestamp: timestamp,
|
||||||
SuggestedFeeRecipient: feeRecipient,
|
SuggestedFeeRecipient: feeRecipient,
|
||||||
|
|
@ -213,6 +212,9 @@ func (c *SimulatedBeacon) sealBlock(withdrawals []*types.Withdrawal, timestamp u
|
||||||
slotNumber := uint64(0)
|
slotNumber := uint64(0)
|
||||||
attribute.SlotNumber = &slotNumber
|
attribute.SlotNumber = &slotNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create a server span for forkchoiceUpdated with payload attributes,
|
||||||
|
// simulating an incoming engine API request from a real consensus client.
|
||||||
fcCtx, fcSpanEnd := telemetry.StartServerSpan(context.Background(), tracer, telemetry.RPCInfo{
|
fcCtx, fcSpanEnd := telemetry.StartServerSpan(context.Background(), tracer, telemetry.RPCInfo{
|
||||||
System: "jsonrpc",
|
System: "jsonrpc",
|
||||||
Service: "engine",
|
Service: "engine",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue