-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spec freeze updates #2312
Spec freeze updates #2312
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2312 +/- ##
===========================================
- Coverage 62.88% 25.95% -36.93%
===========================================
Files 125 88 -37
Lines 9731 6889 -2842
===========================================
- Hits 6119 1788 -4331
- Misses 2885 4773 +1888
+ Partials 727 328 -399 |
* add new package * fix all tests * lint
* Remove deprecated validator protos * Fix to comments
* benchmark process epoch * revert prof.out * Add some optimizations * beware where we use ActiveValidatorIndices... * revert extra file * gaz * quick commit to get feedback * revert extra file * started fixing tests * fixed broken TestProcessCrosslink_NoUpdate * gaz * cache randao seed * fixed all the tests * fmt and lint * spacing * Added todo * lint * revert binary file * started regression test * basic tests done * using a fifo for active indices cache * using a fifo for active count cache * using a fifo for total balance cache * using a fifo for active balance cache * using a fifo for start shard cache * using a fifo for seed cache * gaz * clean up * fixing tests * fixed all the core tests * fixed all the tests!!! * lint * comment * rm'ed commented code * cache size to 1000 should be good enough * optimized base reward * revert binary file * Added comments to calculate adjusted quotient outside
* add RequestBlock * run mockgen * implemented RequestBlock * updated proto definitions * updated tests * updated validator attest tests * done * comment * todo issue * removed unused proto
* sort participants slice * add bitfield functions and tests * added BitfieldBit test * add AttestationParticipantsNew * revert AttestationParticipants to its previous change * add tests * remove verifybitfieldnew * fix tests and remove multiple tests * remove duplicate test * change magic number into ceildiv8
* sort participants slice * add bitfield functions and tests * added BitfieldBit test * add AttestationParticipantsNew * revert AttestationParticipants to its previous change * add tests * remove verifybitfieldnew * fix tests and remove multiple tests * remove duplicate test * start work * convert attestation to indexed attestations * fix test for convert index * remove calling getter * add more tests * remove underscore
* update registry updates func * added tests and moved to epoch processing * fixed naming issues
* fix historical lenght * fix genesis state initialization and test * fix genesis state initialization and test * fix genesis state initialization and test * fix genesis state initialization and test
* local changes * add val sig * attester fix * one more fix * fixed all tests * rem validator issue
* attester fix * one more fix * fixed all tests * Fix validator prev balances calculation * go fmt * 48 bytes
* fix sync issue * fix build * add regression test * add var for magic number
* Work in progress, eth1data works, deposits are included at the appropriate time, and activation happens at the correct time * revert blockInfo being public * git tests to build, not yet pass though * add tests * some commentary * fix comment * goimports * fmt and remove unused method
* update rules_go * Fix some cross compile builds stuff * add missing deps * update to 0.19.1
* add beacon block and attestation files * add all types * include all new proto type definitions * add add all proto definitions * fix all comments to say 48 bytes * include latest changes * readd common * no swag * add build file * deps issue * right package names * address feedback, maintain parity between upstream ethereumapis * delete pb * bad gens
Resolves invalid url link to golangci-lint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>
// we only set the limit at 70% of the calculated amount to be safe so that relevant attestations | ||
// arent carried over to the next batch. | ||
a.poolLimit = attPerSlot * 7 / 10 | ||
a.poolLimit = int(attPerSlot) * 7 / 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should open a tracking issue to change this - to aggregate the attestations instead. These are magic numbers at the moment.
@@ -27,8 +29,15 @@ import ( | |||
// Ensure ChainService implements interfaces. | |||
var _ = BlockProcessor(&ChainService{}) | |||
|
|||
func init() { | |||
// TODO(2993): remove this after ssz is optimized for mainnet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be of form #2993, i wonder how the TODO linter didn't catch this - it's a minor detail anyways
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either format is OK
@@ -77,12 +108,23 @@ func (db *BeaconDB) RemovePendingDeposit(ctx context.Context, d *pb.Deposit) { | |||
return | |||
} | |||
|
|||
depRoot, err := hashutil.HashProto(d) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not be using hash proto here
@@ -60,11 +60,12 @@ var ValidatorFlags = []cli.Flag{ | |||
|
|||
// BeaconChainFlags contains a list of all the feature flags that apply to the beacon-chain client. | |||
var BeaconChainFlags = []cli.Flag{ | |||
EnableComputeStateRootFlag, | |||
EnableCrosslinksFlag, | |||
EnableCheckBlockStateRootFlag, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be removed?
@@ -60,11 +60,12 @@ var ValidatorFlags = []cli.Flag{ | |||
|
|||
// BeaconChainFlags contains a list of all the feature flags that apply to the beacon-chain client. | |||
var BeaconChainFlags = []cli.Flag{ | |||
EnableComputeStateRootFlag, | |||
EnableCrosslinksFlag, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also remove this - we absolutely need crosslinks now
Resolves #2307
Merge all v0.6+ features into this branch. This can be reviewed and merged when all boxes of #2307 are checked.
List your blockers here: