2021-07-27 15:47:03 +00:00
|
|
|
package v2
|
|
|
|
|
|
|
|
import (
|
2021-09-23 01:10:25 +00:00
|
|
|
"context"
|
2021-07-27 15:47:03 +00:00
|
|
|
|
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/state/stateutil"
|
2021-07-29 21:45:17 +00:00
|
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
2021-07-27 15:47:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// computeFieldRoots returns the hash tree root computations of every field in
|
|
|
|
// the beacon state as a list of 32 byte roots.
|
2021-09-23 01:10:25 +00:00
|
|
|
func computeFieldRoots(ctx context.Context, state *ethpb.BeaconStateAltair) ([][]byte, error) {
|
2022-02-22 09:27:51 +00:00
|
|
|
return stateutil.ComputeFieldRootsWithHasherAltair(ctx, state)
|
2021-07-27 15:47:03 +00:00
|
|
|
}
|