Commit Graph

1370 Commits

Author SHA1 Message Date
Preston Van Loon
0becb6dc01 Simplified validator workflow - first pass (#1362)
* Add attestation p2p messages

* first pass refactor

* lint

* viz fix

* comment unused const for now

* Add opentracing spans

* PR feedback
2019-01-23 10:52:39 +08:00
Antoine Toulme
fde3d782ca use little endian for the data length encoding when performing a merkle hash (#1350) 2019-01-23 10:18:45 +08:00
renovate[bot]
9d96a45ee7 Update org_golang_x_sys commit hash to 054c452 (#1365) 2019-01-22 17:38:02 +08:00
renovate[bot]
1c7cadf1c0 Update org_golang_x_crypto commit hash to 6407268 (#1363) 2019-01-22 16:19:21 +08:00
terence tsao
5cb361895d
Rm Shard Committees 2 - Get Crosslink Committees Helpers (#1360) 2019-01-21 23:38:26 -08:00
renovate[bot]
ffd3c37d44 Update com_github_aristanetworks_goarista commit hash to 8f049bd (#1361) 2019-01-21 14:24:30 -08:00
renovate[bot]
b6a79f8f11 Update org_golang_x_sys commit hash to 770c602 (#1358) 2019-01-21 13:20:59 -08:00
Preston Van Loon
bef84d96f1
Add attestation p2p messages (#1359) 2019-01-21 13:41:16 -05:00
Ed Mazurek
10b237e72d db methods: remove Get prefix (#1351)
* db methods: remove Get prefix for getter functions

* db methods: consistent test names by removing Get
2019-01-21 17:34:11 +08:00
Nishant Das
7ff544fddf
Fix travis and Other Linter Errors (#1356)
* fix travis and other linter errors

* remove megacheck
2019-01-21 13:35:34 +08:00
Jie Hou
247e8a5f8c SSZ: Switch to Little Endian (#1354)
* Change encode to little endian

* Fix decode
2019-01-21 12:44:17 +08:00
terence tsao
779bccba1e
Rm Shard Committees 1 - Update Protos and Configs (#1353) 2019-01-20 10:26:33 -08:00
Preston Van Loon
cff32a0e6f
Add config for probot stale bot (#1349)
* Add config for probot stale bot

* more words
2019-01-19 10:30:49 -05:00
Raul Jordan
f89fce9bd7
Implement Basic LMD Ghost Fork Choice Skeleton + Helper Funcs (#1310)
* add fork choice helpers

* LMD GHOST basic implementation

* add todos

* add in the initial test and finalize rest of functions

* added tests

* more simulation, adding trivial case with only one option for a head

* panics

* begin helper function tests

* more helper tests

* higher vote wins

* LMD Ghost full test

* comment

* add types

* optimize

* prepared

* deposits for chain

* lint

* use the hash beacon block util

* rem unnecessary db methods

* comments

* setup works
2019-01-19 10:57:51 +08:00
Preston Van Loon
19d9ad3e37
Revert "add unit test for test broadcast (#1127)" (#1348)
This reverts commit 685e299c45.
2019-01-18 19:27:21 -05:00
Jonathan Gimeno
685e299c45 add unit test for test broadcast (#1127)
* add unit test for test broadcast

* execute goimports

* add import peerstore

* refactor and check message equals expected

* remove not needed sleep

* add function to connect hosts to host

* refactor test for better reading

* refactor to only use one channel

* refactor subs to channel

* close channels instead of sending boolean value

* use goimports

* copy value to avoid race condition

* remove TODO comment

* fix issues with gometalinter

* run gazelle

* reduce sleep time

* add comments to goroutines
2019-01-17 20:43:22 -05:00
renovate[bot]
2c3362e200 Update com_github_minio_sha256_simd commit hash to cc1980c (#1340) 2019-01-17 20:05:08 -05:00
renovate[bot]
52485efa1c Update com_github_prometheus_procfs commit hash to bf6a532 (#1341) 2019-01-17 15:36:55 -08:00
Nishant Das
08a06458d9 Add in ChainStart Listener (#1327)
* changing handling of logs

* gazelle

* removing outdated vars

* fixing tests

* adding vrc bindings to service

* updating vrc sol and bindings

* more changes

* adding trie

* remove functions

* addressing preston's review

* tests

* gazelle

* fixed tests

* note

* Lint

* doc

* exploration test

* adding new methods and tests

* adding log type checker

* lint

* Adding processChainstartLog

* gazelle

* addressing comments

* addressing comments and adding tests

* review comments

* comment

* comment

* abi naming
2019-01-17 23:14:32 +08:00
renovate[bot]
c7eefff105 Update org_golang_x_sys commit hash to 11f53e0 (#1336) 2019-01-16 22:41:02 -08:00
terence tsao
2b24e7940e function to update penalized exit balances (#1335) 2019-01-17 09:10:42 +08:00
Nishant Das
75a431c969 Modify PowChain service (#1289)
* changing handling of logs

* gazelle

* removing outdated vars

* fixing tests

* adding vrc bindings to service

* updating vrc sol and bindings

* more changes

* adding trie

* remove functions

* addressing preston's review

* tests

* gazelle

* fixed tests

* note

* Lint

* doc

* exploration test

* adding new methods and tests

* adding log type checker

* lint

* gazelle

* addressing comments
2019-01-16 22:01:21 +08:00
terence tsao
463cd58171
Implement Process Penalties and Exit Logic (#1291)
* implemented process pentalties and exit logic

* tests

* add MaxWithdrawalsPerEpoch to config

* preston's feedback, replaced index with idx

* s/e/penalizedEpoch

* removed blank line
2019-01-15 21:52:57 -08:00
renovate[bot]
73165495ea Update com_github_prometheus_client_model commit hash to 5672610 (#1329) 2019-01-15 19:41:52 -05:00
renovate[bot]
77974511a3 Update dependency com_github_prometheus_prometheus to v2.6.1 (#1330) 2019-01-15 19:26:26 -05:00
renovate[bot]
a52295e0cf Update org_golang_x_oauth2 commit hash to 5dab416 (#1331) 2019-01-15 13:10:10 -08:00
renovate[bot]
653bfc038f Update org_golang_x_sys commit hash to a457fd0 (#1328) 2019-01-15 09:21:17 -08:00
renovate[bot]
9881b81442 Update com_github_btcsuite_btcd commit hash to ed77733 (#1324) 2019-01-14 22:11:02 -05:00
renovate[bot]
751dd759d5 Update com_github_aristanetworks_goarista commit hash to b7a59f2 (#1321) 2019-01-14 18:22:43 -08:00
renovate[bot]
f1c3ae5549 Update org_golang_x_sys commit hash to 2be5172 (#1319) 2019-01-14 10:09:43 -08:00
Raul Jordan
d47db5e834
Advance Beacon State Transition Part 6: Simulate Validator Exits (#1302)
* deposit definition according to latest spec

* ssz decode input data tests

* fix todo

* ignore XXX fields in struct

* fix

* timestamp

* gazelle run processing

* process deposit complete

* all logic complete

* verify merkle branch

* gazelle

* process deposit func

* diff cov 1005

* add todo"

* all test cases written down

* most tests complete

* ttl timestamp fail

* 100% code coverage in deposits

* fix params

* encode deposit data helper func

* state transition with no slots failing with panic at calcnewblockhashes

* smaller deposits for chain start

* state advancement benches

* ran go tests

* bazel

* improve the thing

* lint

* works works works

* all conflicts fixed

* edit readme to specify tests format

* edit readme to specify tests format

* skip slots works yay

* gazelle

* edit readme to specify tests format

* wrapped up all randao simulation

* fix

* passing

* goimports

* move to slices pkg

* deadcode

* deposit yaml tests

* created deposit trie implementation in Go

* created deposit trie implementation in Go

* gazelle

* merkle branch generation

* merkle branch generation

* more merkle debugging

* fix deposit trie

* include new merkle trie functions

* update all deposit operations

* capitalize

* advancing deposits fully works, grows the validator set

* wrap up time formatting

* lint fix

* include all information in the README

* edit conf

* revert

* clean up before merge

* successfully e2e test proposer slashings

* casper advancement

* wrap up casper slashings

* gazelle

* fix conf

* fix comments

* advance validator exits complete

* wrap up readme
2019-01-15 01:02:49 +08:00
Preston Van Loon
592c5c3d92 Refactor hashing of beaconblock to shared (#1315)
* Add beacon block hash function

* Refactor/remove old hash method

* gazelle
2019-01-15 00:41:20 +08:00
Raul Jordan
e25436557a Advance Beacon State Transition Part 5: Simulate Casper Slashings (#1298)
* deposit definition according to latest spec

* ssz decode input data tests

* fix todo

* ignore XXX fields in struct

* fix

* timestamp

* gazelle run processing

* process deposit complete

* all logic complete

* verify merkle branch

* gazelle

* process deposit func

* diff cov 1005

* add todo"

* all test cases written down

* most tests complete

* ttl timestamp fail

* 100% code coverage in deposits

* fix params

* encode deposit data helper func

* state transition with no slots failing with panic at calcnewblockhashes

* smaller deposits for chain start

* state advancement benches

* ran go tests

* bazel

* improve the thing

* lint

* works works works

* all conflicts fixed

* edit readme to specify tests format

* edit readme to specify tests format

* skip slots works yay

* gazelle

* edit readme to specify tests format

* wrapped up all randao simulation

* fix

* passing

* goimports

* move to slices pkg

* deadcode

* deposit yaml tests

* created deposit trie implementation in Go

* created deposit trie implementation in Go

* gazelle

* merkle branch generation

* merkle branch generation

* more merkle debugging

* fix deposit trie

* include new merkle trie functions

* update all deposit operations

* capitalize

* advancing deposits fully works, grows the validator set

* wrap up time formatting

* lint fix

* include all information in the README

* edit conf

* revert

* clean up before merge

* successfully e2e test proposer slashings

* casper advancement

* wrap up casper slashings

* gazelle

* fix conf

* fix comments
2019-01-14 23:54:27 +08:00
Nishant Das
c186274891
Encoding/Decoding Deposit Data Fix (#1317)
* fix encoding/decoding

* comments
2019-01-14 22:42:26 +08:00
terence tsao
e313e97666
Implement Validator Rotation Logic (#1279) 2019-01-13 12:52:31 -08:00
renovate[bot]
fd6813b7a7 Update com_github_aristanetworks_goarista commit hash to 23a91eb (#1314) 2019-01-13 12:20:03 -08:00
Preston Van Loon
b7b2e51450
Add reflection gRPC service to beacon-chain gRPC server (#1313)
* Add reflection gRPC service to beacon-chain gRPC server

* Move reflection to end of server bootstrap
2019-01-13 11:58:52 -05:00
Andrei Ivasko
b29188128d ToBytes32 (#1306) 2019-01-13 09:04:14 -05:00
renovate[bot]
ce0de388b8 Update dependency solium to v1.2.2 (#1312) 2019-01-13 20:10:08 +08:00
ratikesh9
99def96cc2 Generic Slices library to support different data types (#1219)
* Generic Slices library to support different data types
** Main module added under slice_generic.go
** Test cases passing
** Modified Bazel Build accordingly to run test suite

* Periods added for the generic slice functions

* Build through gazelle & linter fixes

* Generic library using reflection for set operations

* Improvement in test cases including float 32

* Error Handling using generic error message for unsupported type

* Linter fixes and including more test cases

* Linter fixes

* Linter fixes in Errof function & increasing test coverage

* Test cases corrections

*  Benchmark test added for reflection & non reflection functions
Redundancy removed for various data type
Panic removed from the code & error handled

* documnet linter error removed

* Benchmark done with SSZ for reflection and non-reflection based functions

* Bazel build file updated

* gofmt & golinter error fixes

* Added data type support for uint32,int32,byte,int64,uint64

* Removed the redundant code and condition of error handled

* changes in linter & fixes

* Linter fixes

* Individual error handled for slices

* Removed unwanted variable t

* linter fixes

* Removed unwanted conditions

* linter & test cases fix

* Linter fixes in slice generic

* rebuilding with test
2019-01-13 15:57:39 +08:00
Preston Van Loon
3398d2ee78 Install prometheus service in the validator node (#1305)
* install prometheus service in the validator node

* simplify
2019-01-12 23:01:11 -08:00
Preston Van Loon
ddf454a04d Ignore empty public keys in gRPC request (#1309)
* Ignore empty public keys in gRPC request

* Remove log
2019-01-13 12:44:28 +08:00
Preston Van Loon
5b14c8695d
Actually test p2p service against the service definition (#1304) 2019-01-12 23:35:00 -05:00
Preston Van Loon
f3ff441875
delete unused clock thing (#1308) 2019-01-12 23:18:55 -05:00
renovate[bot]
1ff9b4a0c4 Update dependency com_github_miekg_dns to v1.1.3 (#1303) 2019-01-12 13:26:14 -05:00
renovate[bot]
81b517f807 Update com_github_aristanetworks_goarista commit hash to 6a92e3c (#1299) 2019-01-12 09:37:54 -05:00
Raul Jordan
3c5f5cfcd3
Advance Beacon State Transition Part 4: Simulate Proposer Slashings (#1297)
* deposit definition according to latest spec

* ssz decode input data tests

* fix todo

* ignore XXX fields in struct

* fix

* timestamp

* gazelle run processing

* process deposit complete

* all logic complete

* verify merkle branch

* gazelle

* process deposit func

* diff cov 1005

* add todo"

* all test cases written down

* most tests complete

* ttl timestamp fail

* 100% code coverage in deposits

* fix params

* encode deposit data helper func

* state transition with no slots failing with panic at calcnewblockhashes

* smaller deposits for chain start

* state advancement benches

* ran go tests

* bazel

* improve the thing

* lint

* works works works

* all conflicts fixed

* edit readme to specify tests format

* edit readme to specify tests format

* skip slots works yay

* gazelle

* edit readme to specify tests format

* wrapped up all randao simulation

* fix

* passing

* goimports

* move to slices pkg

* deadcode

* deposit yaml tests

* created deposit trie implementation in Go

* created deposit trie implementation in Go

* gazelle

* merkle branch generation

* merkle branch generation

* more merkle debugging

* fix deposit trie

* include new merkle trie functions

* update all deposit operations

* capitalize

* advancing deposits fully works, grows the validator set

* wrap up time formatting

* lint fix

* include all information in the README

* edit conf

* revert

* clean up before merge

* successfully e2e test proposer slashings

* fix comments
2019-01-12 10:11:43 +08:00
Raul Jordan
4b775e76d5 Advance Beacon State Transition Part 3: Simulate Validator Deposits (#1276)
* deposit definition according to latest spec

* ssz decode input data tests

* fix todo

* ignore XXX fields in struct

* fix

* timestamp

* gazelle run processing

* process deposit complete

* all logic complete

* verify merkle branch

* gazelle

* process deposit func

* diff cov 1005

* add todo"

* all test cases written down

* most tests complete

* ttl timestamp fail

* 100% code coverage in deposits

* fix params

* encode deposit data helper func

* state transition with no slots failing with panic at calcnewblockhashes

* smaller deposits for chain start

* state advancement benches

* ran go tests

* bazel

* improve the thing

* lint

* works works works

* all conflicts fixed

* edit readme to specify tests format

* edit readme to specify tests format

* skip slots works yay

* gazelle

* edit readme to specify tests format

* wrapped up all randao simulation

* fix

* passing

* goimports

* move to slices pkg

* deadcode

* deposit yaml tests

* created deposit trie implementation in Go

* created deposit trie implementation in Go

* gazelle

* merkle branch generation

* merkle branch generation

* more merkle debugging

* fix deposit trie

* include new merkle trie functions

* update all deposit operations

* capitalize

* advancing deposits fully works, grows the validator set

* wrap up time formatting

* lint fix

* include all information in the README

* revert

* clean up before merge

* nishant comments
2019-01-12 09:10:39 +08:00
renovate[bot]
686f1bb855 Update org_golang_x_oauth2 commit hash to 36a7019 (#1301) 2019-01-11 18:19:03 -05:00
Raul Jordan
5258f3d3d1
Advance Beacon State Transition Part 2: Simulate Block Randao at Every Slot (#1252) 2019-01-11 18:55:01 +08:00