mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 02:31:19 +00:00
386b69f473
* fix incorrect exported name in comments * add comments to exported methods
20 lines
362 B
Go
20 lines
362 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
|
|
}
|
|
|
|
// StartSpan --
|
|
func StartSpan(ctx context.Context, name string) (context.Context, int) {
|
|
return ctx, 42
|
|
}
|