Skip to content

Commit

Permalink
Remove unused AttestationDataRoot (#8610)
Browse files Browse the repository at this point in the history
* Remove unused AttestationDataRoot

* Gazelle

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
  • Loading branch information
terencechain and rauljordan authored Mar 16, 2021
1 parent 1f8171d commit ea4ea3d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 65 deletions.
1 change: 0 additions & 1 deletion beacon-chain/state/stateutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ go_library(
go_test(
name = "go_default_test",
srcs = [
"attestations_test.go",
"benchmark_test.go",
"reference_bench_test.go",
"state_root_test.go",
Expand Down
5 changes: 0 additions & 5 deletions beacon-chain/state/stateutil/attestations.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ func PendingAttestationRoot(hasher htrutils.HashFn, att *pb.PendingAttestation)
return htrutils.BitwiseMerkleizeArrays(hasher, fieldRoots, uint64(len(fieldRoots)), uint64(len(fieldRoots)))
}

// AttestationDataRoot describes a method that serves as a HashTreeRoot function for attestation data.
func AttestationDataRoot(data *ethpb.AttestationData) ([32]byte, error) {
return attestationDataRoot(hashutil.CustomSHA256Hasher(), data)
}

func marshalAttestationData(data *ethpb.AttestationData) []byte {
enc := make([]byte, 128)

Expand Down
59 changes: 0 additions & 59 deletions beacon-chain/state/stateutil/attestations_test.go

This file was deleted.

0 comments on commit ea4ea3d

Please sign in to comment.