File tree Expand file tree Collapse file tree 12 files changed +15
-16
lines changed Expand file tree Collapse file tree 12 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 7171 },
7272 "dependencies" : {
7373 "@chainsafe/persistent-merkle-tree" : " ^1.0.1" ,
74- "@chainsafe/ssz" : " ^1.0.1 " ,
74+ "@chainsafe/ssz" : " ^1.0.2 " ,
7575 "@lodestar/config" : " ^1.25.0" ,
7676 "@lodestar/params" : " ^1.25.0" ,
7777 "@lodestar/types" : " ^1.25.0" ,
Original file line number Diff line number Diff line change 104104 "@chainsafe/persistent-merkle-tree" : " ^1.0.1" ,
105105 "@chainsafe/prometheus-gc-stats" : " ^1.0.0" ,
106106 "@chainsafe/pubkey-index-map" : " 2.0.0" ,
107- "@chainsafe/ssz" : " ^1.0.1 " ,
107+ "@chainsafe/ssz" : " ^1.0.2 " ,
108108 "@chainsafe/threads" : " ^1.11.1" ,
109109 "@ethersproject/abi" : " ^5.7.0" ,
110110 "@fastify/bearer-auth" : " ^10.0.1" ,
Original file line number Diff line number Diff line change 5757 "@chainsafe/discv5" : " ^9.0.0" ,
5858 "@chainsafe/enr" : " ^3.0.0" ,
5959 "@chainsafe/persistent-merkle-tree" : " ^1.0.1" ,
60- "@chainsafe/ssz" : " ^1.0.1 " ,
60+ "@chainsafe/ssz" : " ^1.0.2 " ,
6161 "@chainsafe/threads" : " ^1.11.1" ,
6262 "@libp2p/crypto" : " ^4.1.0" ,
6363 "@libp2p/peer-id" : " ^4.1.0" ,
Original file line number Diff line number Diff line change 6464 " blockchain"
6565 ],
6666 "dependencies" : {
67- "@chainsafe/ssz" : " ^1.0.1 " ,
67+ "@chainsafe/ssz" : " ^1.0.2 " ,
6868 "@lodestar/params" : " ^1.25.0" ,
6969 "@lodestar/types" : " ^1.25.0" ,
7070 "@lodestar/utils" : " ^1.25.0"
Original file line number Diff line number Diff line change 3535 "check-readme" : " typescript-docs-verifier"
3636 },
3737 "dependencies" : {
38- "@chainsafe/ssz" : " ^1.0.1 " ,
38+ "@chainsafe/ssz" : " ^1.0.2 " ,
3939 "@lodestar/config" : " ^1.25.0" ,
4040 "@lodestar/utils" : " ^1.25.0" ,
4141 "classic-level" : " ^1.4.1" ,
Original file line number Diff line number Diff line change 3636 "check-readme" : " typescript-docs-verifier"
3737 },
3838 "dependencies" : {
39- "@chainsafe/ssz" : " ^1.0.1 " ,
39+ "@chainsafe/ssz" : " ^1.0.2 " ,
4040 "@lodestar/config" : " ^1.25.0" ,
4141 "@lodestar/params" : " ^1.25.0" ,
4242 "@lodestar/state-transition" : " ^1.25.0" ,
Original file line number Diff line number Diff line change 7676 "@chainsafe/bls" : " 7.1.3" ,
7777 "@chainsafe/blst" : " ^0.2.0" ,
7878 "@chainsafe/persistent-merkle-tree" : " ^1.0.1" ,
79- "@chainsafe/ssz" : " ^1.0.1 " ,
79+ "@chainsafe/ssz" : " ^1.0.2 " ,
8080 "@lodestar/api" : " ^1.25.0" ,
8181 "@lodestar/config" : " ^1.25.0" ,
8282 "@lodestar/params" : " ^1.25.0" ,
Original file line number Diff line number Diff line change 6363 "@chainsafe/persistent-merkle-tree" : " ^1.0.1" ,
6464 "@chainsafe/persistent-ts" : " ^1.0.0" ,
6565 "@chainsafe/pubkey-index-map" : " 2.0.0" ,
66- "@chainsafe/ssz" : " ^1.0.1 " ,
66+ "@chainsafe/ssz" : " ^1.0.2 " ,
6767 "@chainsafe/swap-or-not-shuffle" : " ^0.0.2" ,
6868 "@lodestar/config" : " ^1.25.0" ,
6969 "@lodestar/params" : " ^1.25.0" ,
Original file line number Diff line number Diff line change @@ -84,8 +84,7 @@ export function getMaxEffectiveBalance(withdrawalCredentials: Uint8Array): numbe
8484
8585export function getPendingBalanceToWithdraw ( state : CachedBeaconStateElectra , validatorIndex : ValidatorIndex ) : number {
8686 let total = 0 ;
87- for ( let i = 0 ; i < state . pendingPartialWithdrawals . length ; i ++ ) {
88- const item = state . pendingPartialWithdrawals . get ( i ) ;
87+ for ( const item of state . pendingPartialWithdrawals . getAllReadonly ( ) ) {
8988 if ( item . validatorIndex === validatorIndex ) {
9089 total += Number ( item . amount ) ;
9190 }
Original file line number Diff line number Diff line change 7373 },
7474 "types" : " lib/index.d.ts" ,
7575 "dependencies" : {
76- "@chainsafe/ssz" : " ^1.0.1 " ,
76+ "@chainsafe/ssz" : " ^1.0.2 " ,
7777 "@lodestar/params" : " ^1.25.0" ,
7878 "ethereum-cryptography" : " ^2.0.0"
7979 },
You can’t perform that action at this time.
0 commit comments