Skip to content

Commit

Permalink
source state from header
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsanant committed Jan 24, 2024
1 parent 3f98ddc commit f642bc7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
Binary file removed .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ data/deneb_goerli_slot_7431952.json
generation/proofGenCLI

solidityProofGen/solidityProofGen

deneb_goerli_slot_7416760

test

**/.DS_Store
Binary file removed data/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions prove_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (epp *EigenPodProofs) ProveValidatorWithdrawalCredentials(oracleBlockHeader
}

// Get beacon state root.
verifyWithdrawalCredentialsCallParams.StateRootProof.BeaconStateRoot, err = epp.ComputeBeaconStateRoot(oracleBeaconState)
verifyWithdrawalCredentialsCallParams.StateRootProof.BeaconStateRoot = oracleBlockHeader.StateRoot
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -65,7 +65,7 @@ func (epp *EigenPodProofs) ProveValidatorFields(oracleBlockHeader *phase0.Beacon
}

// Get beacon state root. TODO: Combine this cheaply with compute beacon state top level roots
stateRootProof.BeaconStateRoot, err = epp.ComputeBeaconStateRoot(oracleBeaconState)
stateRootProof.BeaconStateRoot = oracleBlockHeader.StateRoot
if err != nil {
return nil, nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion prove_withdrawal.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (epp *EigenPodProofs) ProveWithdrawals(
}

// Get beacon state root.
verifyAndProcessWithdrawalCallParams.StateRootProof.BeaconStateRoot, err = epp.ComputeBeaconStateRoot(oracleBeaconState)
verifyAndProcessWithdrawalCallParams.StateRootProof.BeaconStateRoot = oracleBlockHeader.StateRoot
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f642bc7

Please sign in to comment.