mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
fix issue with passing correct ctx
This commit is contained in:
parent
0d2fc33860
commit
646be76779
1 changed files with 2 additions and 2 deletions
|
|
@ -810,9 +810,9 @@ func (api *ConsensusAPI) newPayload(ctx context.Context, params engine.Executabl
|
|||
return engine.PayloadStatusV1{Status: engine.ACCEPTED}, nil
|
||||
}
|
||||
log.Trace("Inserting block without sethead", "hash", block.Hash(), "number", block.Number())
|
||||
_, _, spanEnd = telemetry.StartSpan(ctx, "engine.newPayload.InsertBlockWithoutSetHead", attrs...)
|
||||
sctx, _, spanEnd := telemetry.StartSpan(ctx, "engine.newPayload.InsertBlockWithoutSetHead", attrs...)
|
||||
start := time.Now()
|
||||
proofs, err := api.eth.BlockChain().InsertBlockWithoutSetHead(ctx, block, witness)
|
||||
proofs, err := api.eth.BlockChain().InsertBlockWithoutSetHead(sctx, block, witness)
|
||||
processingTime := time.Since(start)
|
||||
spanEnd(err)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue