Commit Graph

6853 Commits

Author SHA1 Message Date
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
Raul Jordan
1f11b821ab Implement PoW Chain Deposit Trie in Go (#1285) 2019-01-11 16:29:30 +08:00
renovate[bot]
dc5807b67d Update org_golang_x_oauth2 commit hash to fd3eaa1 (#1295) 2019-01-10 23:13:34 -05:00
Kushagra Sharma
ef41dcfe3b Documented p2p.Server.Broadcast (#1166)
* Documented Server.Broadcast

* Fixed documentation formatting
2019-01-10 22:56:17 -05:00
renovate[bot]
8d6087af02 Update dependency com_github_pkg_errors to v0.8.1 (#1296) 2019-01-10 22:46:47 -05:00
Preston Van Loon
83a31c50b8 Better printing of version number when starting nodes (#1294) 2019-01-11 10:19:58 +08:00
Preston Van Loon
ba62ad7ad6 remove file from 1265 (#1293) 2019-01-10 20:34:34 -05:00
renovate[bot]
775a8003e6 Update dependency com_github_libp2p_go_reuseport_transport to v0.2.0 (#1274)
* Update dependency com_github_libp2p_go_reuseport to v0.2.0

* Update dependency com_github_libp2p_go_reuseport_transport to v0.2.0

* Add dep
2019-01-10 20:31:52 -05:00
Preethesh Puthran
afcfc47273 Added tests for iputils (#1265)
* Added tests for iputils

These tests reference issue #1264 on prysm.
The purpose behind the changes is to validate
results of the return value for the function
ExternalIPv4. Using regular expressions to validate
the ip address. Bazel build configuration has also
been updated.

* Added tests for iputils

These tests reference issue #1264 on prysm.
The purpose behind the changes is to validate
results of the return value for the function
ExternalIPv4. Using regular expressions to validate
the ip address. Bazel build configuration has also
been updated.

* Updated external_ip_test
2019-01-10 20:08:22 -05:00
renovate[bot]
b33ef7bfc2 Update dependency com_github_libp2p_go_libp2p_pubsub to v0.11.10 (#1283) 2019-01-10 09:39:04 -05:00
Preston Van Loon
b23ca60efd Add simple version to binaries via golink (#1286)
* Add version linking to binaries via --workspace_status_command=./scripts/workspace_status.sh

* dont export some things

* lint and better date

* even better date
2019-01-09 23:19:33 -05:00
Nishant Das
09d4c3b25d Modifying Block Proposals for Validator Clients (#1224)
* adding rpc method

* permissions

* adding functions

* gazelle

* adding new methods

* gomocks and test

* tests again

* new changes

* fix tests

* tests and godoc

* gazelle

* lint

* nosec

* addressing review comments

* addressing more review comments

* fix merge issues
2019-01-10 10:56:26 +08:00
terence tsao
81dee286fb Batch Updates for Renovate (#1282)
* Update com_github_aristanetworks_goarista commit hash to b3287ee

* Update com_github_btcsuite_btcd commit hash to 5bda531

* Update com_github_minio_sha256_simd commit hash to 79eac57

* Update com_github_prometheus_client_model commit hash to f287a10

* Update org_golang_x_sys commit hash to 48ac38b
2019-01-09 16:45:07 -08:00
terence tsao
060a311a14 Core Package Clean up Part 2 (#1268)
* comments on core package declarations

* fixed sentence

* cap

* no extra line

* fixed tests

* gazelle
2019-01-10 07:49:50 +08:00
terence tsao
911d30031a Hook up Epoch-Processing Logic Inside State Transitions (#1246) 2019-01-09 09:26:40 -08:00
terence tsao
112a48a442 disabled race detection (#1277) 2019-01-09 08:52:03 -08:00
Raul Jordan
4bb6196f4f Wrap Up Data Structure Renaming (#1270)
* spec renames

* fix goimports

* fix items
2019-01-09 03:49:17 -06:00
renovate[bot]
6148fd6578 Update com_github_aristanetworks_goarista commit hash to a46b54c (#1273) 2019-01-08 21:51:03 -08:00