mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-28 14:17:17 +00:00
ecfdb354a7
* test defined * first working impl * register analyzer * cleanup * removes unused code * secure rand in slasher/detection/testing * Updates test * fixes ineffassign type checks * one more Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
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
|
|
}
|