Skip to content

Commit

Permalink
added gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddy J committed Nov 20, 2023
1 parent dbf04d0 commit fa28677
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data/goerli_slot_6397852.json
data/goerli_slot_6397952.json
data/goerli_slot_6399998.json
Binary file modified data/.DS_Store
Binary file not shown.
5 changes: 4 additions & 1 deletion merkle_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@ func TestGetValidatorProof(t *testing.T) {
validators := b.Validators

beaconStateTopLevelRoots, err := ComputeBeaconStateTopLevelRoots(&b)
if err != nil {
fmt.Println("error")
}

validatorProof, _ := epp.ProveValidatorAgainstBeaconState(&b, beaconStateTopLevelRoots, uint64(validatorIndex))

Expand All @@ -637,7 +640,7 @@ func TestGetValidatorProof(t *testing.T) {
// calling the proof verification func
beaconRoot, _ := b.HashTreeRoot()

validatorIndex = validatorIndex<<(validatorListMerkleSubtreeNumLayers+1) | uint64(validatorIndex)
validatorIndex = validatorListIndex<<(validatorListMerkleSubtreeNumLayers+1) | uint64(validatorIndex)

flag := ValidateProof(beaconRoot, validatorProof, leaf, validatorIndex)
if flag != true {
Expand Down

0 comments on commit fa28677

Please sign in to comment.