From f642bc7d8896f117e2ae16397d620582e2d7c0d2 Mon Sep 17 00:00:00 2001 From: gpsanant Date: Tue, 23 Jan 2024 18:01:34 -0800 Subject: [PATCH] source state from header --- .DS_Store | Bin 10244 -> 0 bytes .gitignore | 6 ++++++ data/.DS_Store | Bin 6148 -> 0 bytes prove_validator.go | 4 ++-- prove_withdrawal.go | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) delete mode 100644 .DS_Store delete mode 100644 data/.DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index b5085cfd91774ecb133587a495d9c6eebbffcedc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10244 zcmeHMYitx%6h3EK=**OsX$z&ZTDr7B2o&g69+ih~UqYeS+6OJ=vF>(;cI@m-*_qu% znkJ3$k$}cu;@f|k7!4*SMEGGe{?f!pG=zXA{?Q*s`DLQSM1$wfon5y}o0yoWn7PT^ zb06p2d(U^jvorTD0ANR2ivWZHK%|FBWf^4)B-YQKTaw_nC?t{Wp~tkx6Q-S@I%^A3 zfIxsifIxsifIxu2e-8nAXR{=ha~b3T0s#U60(k`3??ad#CZoQb_Yq7t!5+jO}mC|IfwL=L$WE_!WS%^U$(No@ve<6+jid9wXe7Taz*8GrK(z%#|RnA zHBK0MYB+0X?&RUPGp<{jVNHx=497^A`j8b*>QzFGBwemuRac>g)H`!s#U`TCB#x#N z#>uqdKH|->xJiq{nbIlOMA2(rw_cTp9CBBQ`-;t* zWO-MyS-yy3b8Sb@mz;E2OTUJNM?PQW%bgHn~Z;rOB z>Tx!6Z`^VFrge)}^^re)H}#D8EBE}X(Q<7WkB^!aD_1wI-_*K&S2WKfPP`n~3K{Itb{^S1+IqWO#5YD9HFSqu zzgQ#<6W{eyA|tI*#DN!sbrM$XFzE5J|t$T!%=93RFhG||E=o+7%= z;4G2#Nj!sR@o7AV&*2OBqEFj5@hwidJQ4TjD99zgS4hOnV9GLWYl7Msace*a112c9 zAO_Q5Q|K|7qLK|Kz=6%wYtMhlVLe$EzT}oN9nwrP`yyTT(pX5>fixtGbbl?&(~&9BqSr@$l`qw!tx&7_h`b%*i=e1UeF^VNb;Dhs^-bBx7t zD6}mvu-)rn+DY>p^VcmT2>RNB8LNG(jJN6xeO8c-|9N4PKMSl{VEb1%bIrUlvSjbV zB#n`x(X!r%3yi{ipNF6X1B7)ubiqNAY(I;36X^41o`sl4c~OMs>C>`<6d({F5FijB z5Fl{-AyC4X9A@|b-HZSKfBQKWtT;d*K;SPUfTdl7UF?XTJN_42vb**$JrB{t64RUG z(leoqsjznMI-V-*I)1(1=3ioY{ZYSdj!Vy+>^yUl|InWSW^n#zyRq0sRdD|Q|DXT= E0E7Y?c>n+a diff --git a/.gitignore b/.gitignore index 65d7c6d5..1e1f369a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,9 @@ data/deneb_goerli_slot_7431952.json generation/proofGenCLI solidityProofGen/solidityProofGen + +deneb_goerli_slot_7416760 + +test + +**/.DS_Store \ No newline at end of file diff --git a/data/.DS_Store b/data/.DS_Store deleted file mode 100644 index a90bfd0bbf963c6d16e183f7b2684ae3efc9c32e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKO;5ux41IwKCOEL;IDq;KCN^NuTS4Q%nI8b^h7eFziI02#5kC>0V{5RL0lOeH z*^>RzBzEIhC2jzO)0a^fXaQ(a1sfYQUx%F3ZCJYqm&pQ_-z6;0!ne69(jb zNT`CDVWk+44w`rcAU4Cr_5TC>_GprOjLJ8_hRM%ivjG*r9Pi$UhSShMIf?Ym> zy*bzoCB(NgeiEl6WQuN`0cT*EfmMBMN&P>YfB&C$@+W7&8CWU?LSt|-IAuy!TWiTl ttxc#`R1uk1DMl9>E61@RrMOLv!m&ge#LTc#WDmuE1R@P?oPj@O;2nytk(2-c diff --git a/prove_validator.go b/prove_validator.go index 8a18faac..3281eea2 100644 --- a/prove_validator.go +++ b/prove_validator.go @@ -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 } @@ -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 } diff --git a/prove_withdrawal.go b/prove_withdrawal.go index 4ca19232..f693d3f9 100644 --- a/prove_withdrawal.go +++ b/prove_withdrawal.go @@ -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 }