mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
19 lines
346 B
Go
19 lines
346 B
Go
|
package testdata
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
// This returns the head state.
|
||
|
// It does a full copy on head state for immutability.
|
||
|
func headState(ctx context.Context) {
|
||
|
ctx, span := StartSpan(ctx, "blockChain.headState")
|
||
|
fmt.Print(span)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
func StartSpan(ctx context.Context, name string) (context.Context, int) {
|
||
|
return ctx, 42
|
||
|
}
|