Commit Graph

1701 Commits

Author SHA1 Message Date
Raul Jordan
e052e457df
Remove Old References to Block Vote Cache (#1585)
* rem references to vote cache

* fix build
2019-02-14 08:54:29 -06:00
renovate[bot]
20a340bfcc Update com_github_libp2p_go_libp2p_discovery commit hash to 17aa7d7 (#1592) 2019-02-14 08:53:29 -05:00
renovate[bot]
120f5e6c87 Update dependency build_bazel_rules_nodejs to v0.18.6 (#1588) 2019-02-14 08:31:02 -05:00
Preston Van Loon
65c2fe22cf
Temporarily disable static linking for validator docker image #1582 (#1589) 2019-02-14 08:29:34 -05:00
renovate[bot]
6af4505b9a Update com_github_aristanetworks_goarista commit hash to c1e4b37 (#1587) 2019-02-14 17:08:12 +05:30
Nishant Das
bddceda33b Implement Verify Bitfield (#1562) 2019-02-14 01:17:54 +00:00
Raul Jordan
281e5d1cfd
Provide Real Keystore to Validator Service for Public/Private Key Access at Runtime (#1570)
* provide validator with real keystore public key

* fmt

* build errors buildkite

* readd imports removed by goimport

* gazelle

* address broken tests

* make reference to filename a param

* fmt

* imports

* gazelle

* os remove all

* Use better Temp storage for tests

* testmain approach to avoid repeating expensive operation for each test

* travis lint

* fix test

* nokeystore in status test

* passing

* fix goimports
2019-02-13 17:49:06 -06:00
terence tsao
59e5e59300
Update Fork Choice to Use Balance (#1564) 2019-02-13 23:13:00 +00:00
terence tsao
89b451cb6e Move Validator Helper Functions to Helper Package (#1584)
* fixed epoch_processing

* test p2p

* refactored validator helpers to helper package

* increased validator test cov
2019-02-13 15:04:31 -06:00
Raul Jordan
fb9d60c377
Update References to Deposit Contract, Update Flags (#1576)
* update readme

* rename k8 file
2019-02-13 13:08:28 -06:00
Raul Jordan
b1f1dff8e5
Fetch Initial Assignments at Genesis Slot Post ChainStart (#1574)
* fix test for initial assign

* fmt
2019-02-13 12:27:44 -06:00
Raul Jordan
f707f14cb2
Change BLS Public Key Length Check in Beacon RPC Server (#1571) 2019-02-13 12:08:25 -06:00
Raul Jordan
c4ad6f220d
Wait to Send Genesis Time to Validators Until After Genesis State is Initialized (#1568)
* add state initialized feed to send to rpc service

* rpc tests pass by using mock initializer

* verifies the chain start send and receive

* chain start chan sub test

* goimports
2019-02-13 11:51:57 -06:00
terence tsao
f8d8865020
Moved Rewards/Penalties Helpers to Helper Packages (#1583) 2019-02-13 17:33:45 +00:00
terence tsao
fa47a9bf36
Remove Justified Slot (#1561) 2019-02-13 16:42:33 +00:00
Nishant Das
77b1cc1c81
Simplify Config (#1579)
* clean up config

* lint
2019-02-13 20:04:58 +05:30
renovate[bot]
8f43a27615 Update org_golang_x_sys commit hash to 983097b (#1580) 2019-02-13 13:47:13 +00:00
renovate[bot]
7157f46212 Update com_github_btcsuite_btcd commit hash to 306aecf (#1578) 2019-02-13 13:19:43 +00:00
renovate[bot]
fc366304bc Update org_golang_x_oauth2 commit hash to 3e8b2be (#1575) 2019-02-13 00:33:22 +00:00
renovate[bot]
b36fb6c714 Update com_github_libp2p_go_libp2p_discovery commit hash to d4858e0 (#1573) 2019-02-12 23:49:59 +00:00
renovate[bot]
2d8fed2839 Update com_github_aristanetworks_goarista commit hash to 83ee463 (#1572) 2019-02-12 23:32:59 +00:00
Raul Jordan
bb3ee07a3d
Standardize Slot Ticker with params.BeaconConfig().GenesisSlot (#1569)
* tests passing after standardizing to genesis slot

* goimports

* no more magic numbers in current slot

* fmt
2019-02-12 14:58:35 -06:00
Raul Jordan
cd415b0eda
Track Previously Seen Merkle Index to Prevent Duplicate Log Spam (#1566)
* using little endian and tests for encoding dep inputs

* use decode value and timestamp method in state

* updated comments to match serialization format

* latest compiled contract, abi, bytecode, and bindings

* to little endian everywhere

* fix all tests except for contract tests

* include contract changes

* address broken build

* compile with vyper v8

* update readme

* fix pkg name

* add skip chainstart delay

* skip chainstart delay tests pass

* to little endian timestamp

* using genesis timestamp instead of bool

* update with gofmt

* make more fields public

* duplicate log spam inconsistent root fixed by tracking last seen index

* sync with master

* readd weird removal of import

* readd libp2p import

* gazelle

* readd eth

* comments
2019-02-12 13:50:39 -06:00
terence tsao
05b29d6226 Update PendingAttestationRecord Proto (#1567)
* fixed epoch_processing

* test p2p

* PendingAttestationRecord -> PendingAttestation
2019-02-12 12:04:30 -06:00
Raul Jordan
5c06e326cf
Use Public, Constant Genesis Timestamp in Deposit Contract Instead of ChainStart Bool (#1557)
* using little endian and tests for encoding dep inputs

* use decode value and timestamp method in state

* updated comments to match serialization format

* latest compiled contract, abi, bytecode, and bindings

* to little endian everywhere

* fix all tests except for contract tests

* include contract changes

* address broken build

* compile with vyper v8

* update readme

* fix pkg name

* add skip chainstart delay

* skip chainstart delay tests pass

* to little endian timestamp

* using genesis timestamp instead of bool

* update with gofmt

* make more fields public
2019-02-12 11:06:52 -06:00
terence tsao
471b2ed8e1
Implement get_next_epoch_committee_assignment helper function (#1552) 2019-02-12 16:20:31 +00:00
renovate[bot]
cfaa938ca8 Update org_golang_x_oauth2 commit hash to 5f6b76b (#1558) 2019-02-12 09:04:24 -05:00
Nishant Das
9ea379c450 change to message hash (#1563) 2019-02-12 08:34:53 -05:00
renovate[bot]
b67d641f2f Update org_golang_x_crypto commit hash to 74369b4 (#1555) 2019-02-12 10:04:38 +01:00
renovate[bot]
c238fe6603 Update com_github_prysmaticlabs_go_bls commit hash to 0e61c30 (#1554) 2019-02-12 07:33:00 +01:00
Raul Jordan
5dc5f1d1c8 Update Contract to Use Little Endian And Encoding Across Entire Repo (#1536)
* using little endian and tests for encoding dep inputs

* use decode value and timestamp method in state

* updated comments to match serialization format

* latest compiled contract, abi, bytecode, and bindings

* to little endian everywhere

* fix all tests except for contract tests

* include contract changes

* address broken build

* compile with vyper v8

* update readme

* fix pkg name

* add skip chainstart delay

* skip chainstart delay tests pass

* to little endian timestamp
2019-02-12 09:27:00 +05:30
Jie Hou
52a21b6314 Support Encode/Decode of Nil Pointer (#1553)
* Support encoding/decoding against nil pointer

* Fix comments

* Small fix
2019-02-12 09:17:56 +05:30
renovate[bot]
5e9970b4e7 Update org_golang_x_oauth2 commit hash to 80673b4 (#1556) 2019-02-11 22:12:44 +01:00
Nishant Das
bc2afa04c6 Utilize Go-BLS in Prysm (#1367)
* removing redundant bls package

* gazelle

* battling bazel deps

* workspace

* go-bls works in prysm now

* add func and test

* add test

* fix tests

* edit workspace

* more verbose logs

* lint

* all tests passing

* handle error in keystore
2019-02-11 13:45:06 -05:00
Raul Jordan
3d8bb73f15
Attester RPC Server Functions (#1505)
* initial validator attesthead rewrite based on proposer rewrite

* proceed with fetching committees and tree hashing the canonical head at assigned attester slot

* complete filling the properties of attestation data and all associated root hashes

* add when to attest todo

* finish entire attester client logic

* tests with mocks checked in

* tests passing in client

* stubbed out server implementation

* fixed build due to old property

* regen mocks with new mockgen version

* fixed broken tests

* complete bazel build fix

* address some review comments

* deep proto test

* server implementation logic

* attestation info tests

* completed passing tests, tree hash still blocked by error with nil fields unfortunately

* fix todo failure

* gazelle rerun and master merge

* testing full behavior of attestation info server

* finished all required server tests and implementation

* break loop

* fix tests due to genesis slot updates
2019-02-11 10:15:25 -06:00
renovate[bot]
36771b56c7 Update dependency solium to v1.2.3 (#1551) 2019-02-11 07:20:34 +01:00
renovate[bot]
a7abd36d9c Update dependency build_bazel_rules_nodejs to v0.18.5 (#1548) 2019-02-10 19:59:55 -06:00
terence tsao
4cadd534db
Update Genesis Slot and Epoch (#1537) 2019-02-10 23:09:35 +01:00
Andrei Ivasko
8d59ac882b Create health check for SyncService (#1316)
* syncHealth removed capitalization from an error string

* replaced error variable names in testStatus()

*  TestStatus splits into 3 separate tests

* unit test refinement + travis resolved issues

* modified isSynced in querier.go + deleted uncommented code

* removed conditional logic from two unit tests

* TestStatus_ReturnsErrorWhenNotSynced

* moved defer TeardownDB outside setupSyncService
2019-02-10 15:07:31 -06:00
terence tsao
e321fdfafa Update to Use Crosslink in AttestationData (#1546)
* fixed epoch_processing

* test p2p

* attestation uses crosslink instead of crosslink root hash

* lint
2019-02-10 11:59:17 -06:00
terence tsao
b5e2a49dac Fixed a Prev Boundary Epoch Attestation Bug (#1547)
* fixed epoch_processing

* test p2p

* fixed PrevBoundaryAttestations and its tests
2019-02-10 11:28:33 -06:00
terence tsao
3dc6d3a2e6
Final Updates During Epoch Processing (#1540) 2019-02-09 22:14:10 +01:00
renovate[bot]
f3e813de9b Update org_golang_x_sys commit hash to 3b52091 (#1544) 2019-02-09 15:50:28 -05:00
Raul Jordan
12524ae8dd
Update RANDAO to Match Spec (#1533)
* fix bug in eth1 data vote count increases

* updating attester slashings

* is double vote and attester pseudocode

* attester slashing revamp complete

* exits processing complete

* all block operations aligned to spec

* completed test revamp

* builds properly

* all done FINALLY

* deprecate all instances of old randao logic

* fix all broken tests and cleanup randao references across repo

* builds but tests failing

* fixing broken chaintests

* only chaintests fail now

* randao fully updated

* add bls todo

* lint

* travis

* fix unresolved property in struct

* remove used randao var
2019-02-09 14:35:51 -06:00
terence tsao
d008388bd1 Aligning ETH2.0 spec - Attestation and Epoch Processing - Part 2 (#1523)
* fixed epoch_processing

* epoch processing functions aligned

* fixed the last test!

* addressed nishant's comments
2019-02-09 14:15:59 -06:00
Preston Van Loon
b0b55e8d1d
Remove pending deposits after receiving a processed block (#1530)
* Remove pending deposits after receiving a processed block

* Abstract createDeposit

* fix test

* Rename helper for clarity

* MaxDepositAmount
2019-02-09 09:07:30 -05:00
Preston Van Loon
932f9d07db
Renovate bulk update (#1543)
* Update com_github_btcsuite_btcd commit hash to 12ce2fc

* Update com_github_prometheus_procfs commit hash to f8d8b3f

* Update dependency build_bazel_rules_nodejs to v0.18.4

* Update dependency com_github_libp2p_go_libp2p_crypto to v2.0.5
2019-02-09 08:58:00 -05:00
renovate[bot]
658a0876ff Update dependency bazel_skylib to v0.7.0 (#1534) 2019-02-09 08:37:36 -05:00
terence tsao
c46a583acb
Update MaxDeposit Config Names (#1539) 2019-02-09 14:09:09 +01:00
Raul Jordan
7ae19ec370
Align Block Operations to Spec (#1512)
* fix bug in eth1 data vote count increases

* updating attester slashings

* is double vote and attester pseudocode

* attester slashing revamp complete

* exits processing complete

* all block operations aligned to spec

* completed test revamp

* builds properly

* all done FINALLY

* address comms

* comment

* no more confusing is double vote function

* surround
2019-02-08 15:53:36 -06:00