mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
Remove unused EpochAttestationsRoot method (#6514)
* Remove unused EpochAttestationsRoot method
This commit is contained in:
parent
c77296ff82
commit
90b8b76ae8
@ -8,22 +8,11 @@ import (
|
||||
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
||||
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
||||
"github.com/prysmaticlabs/prysm/shared/bytesutil"
|
||||
"github.com/prysmaticlabs/prysm/shared/featureconfig"
|
||||
"github.com/prysmaticlabs/prysm/shared/hashutil"
|
||||
"github.com/prysmaticlabs/prysm/shared/htrutils"
|
||||
"github.com/prysmaticlabs/prysm/shared/params"
|
||||
)
|
||||
|
||||
// EpochAttestationsRoot computes the HashTreeRoot Merkleization of
|
||||
// a list of pending attestation values according to the eth2
|
||||
// Simple Serialize specification.
|
||||
func EpochAttestationsRoot(atts []*pb.PendingAttestation) ([32]byte, error) {
|
||||
if featureconfig.Get().EnableSSZCache {
|
||||
return cachedHasher.epochAttestationsRoot(atts)
|
||||
}
|
||||
return nocachedHasher.epochAttestationsRoot(atts)
|
||||
}
|
||||
|
||||
// PendingAttestationRoot describes a method from which the hash tree root
|
||||
// of a pending attestation is returned.
|
||||
func PendingAttestationRoot(hasher htrutils.HashFn, att *pb.PendingAttestation) ([32]byte, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user