Skip to content
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

Merged
merged 342 commits into from
Jul 20, 2019
Merged

Spec freeze updates #2312

merged 342 commits into from
Jul 20, 2019

Conversation

prestonvanloon
Copy link
Member

@prestonvanloon prestonvanloon commented Apr 20, 2019

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:

@codecov
Copy link

codecov bot commented Apr 20, 2019

Codecov Report

Merging #2312 into master will decrease coverage by 36.92%.
The diff coverage is 22.53%.

@@             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

terencechain and others added 10 commits May 30, 2019 23:46
* 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
Ivan Martinez and others added 5 commits June 6, 2019 07:22
* add RequestBlock

* run mockgen

* implemented RequestBlock

* updated proto definitions

* updated tests

* updated validator attest tests

* done

* comment

* todo issue

* removed unused proto
shayzluf and others added 8 commits June 9, 2019 16:28
* 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
prestonvanloon and others added 11 commits July 18, 2019 11:11
* 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.
@prestonvanloon prestonvanloon removed the Blocked Blocked by research or external factors label Jul 19, 2019
Copy link
Member Author

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

prestonvanloon and others added 2 commits July 19, 2019 18:51
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
Copy link
Contributor

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.
Copy link
Contributor

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

Copy link
Member Author

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)
Copy link
Contributor

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,
Copy link
Contributor

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,
Copy link
Contributor

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

@rauljordan rauljordan merged commit e744d1a into master Jul 20, 2019
@0xKiwi 0xKiwi deleted the spec-v0.6 branch April 17, 2020 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Critical Highest, immediate priority item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Mega Tracking] - Align spec to release v0.6
8 participants