Commit Graph

1382 Commits

Author SHA1 Message Date
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
terence tsao
138bc37a60
Renaming Poc_ and Pow_receipt_ fields (#1271) 2019-01-08 20:42:42 -08:00
Nishant Das
bb7b0a324b
Fix Bug On Startup Using Genesis.json (#1258)
* fix bug

* making requested changes

* new changes

* changing initialize state

* remove genesis.json and references

* remove log

* readme

* readme

* remove reference
2019-01-09 11:03:57 +08:00
Nishant Das
24b87d52ed Revert "Update org_golang_x_sys commit hash to 7fbe1cd (#1266)" (#1272)
This reverts commit 1146096003.
2019-01-08 18:25:45 -08:00
renovate[bot]
1146096003 Update org_golang_x_sys commit hash to 7fbe1cd (#1266) 2019-01-08 06:53:45 -08:00
renovate[bot]
5d9200abea Update org_golang_x_sys commit hash to 20be8e5 (#1262) 2019-01-07 10:16:27 -08:00
renovate[bot]
ea146f2966 Update com_github_prometheus_common commit hash to 2998b13 (#1261) 2019-01-07 19:24:46 +08:00
renovate[bot]
31f598a79d Update org_golang_x_sys commit hash to cb59ee3 (#1260) 2019-01-07 16:13:33 +08:00
renovate[bot]
ae1d1e1d5a Update org_golang_x_sys commit hash to 1775db3 (#1259) 2019-01-06 13:51:01 -08:00
Raul Jordan
c86bd54ad1
Simulated Backend State Transition Tests Part 1 (#1221) 2019-01-06 09:25:43 -06:00
Kushagra Sharma
f4b840a9a2 Add script to generate pb.go files (#1254)
* Add script to generate pb.go files

* Fix script paths and bazel
2019-01-06 09:55:10 -05:00
Preston Van Loon
f47f123aab Remove some redundant fetches from DB for the beacon state (#1257) 2019-01-06 13:05:16 +08:00
terence tsao
141a8dba87
Reformat Configs for Readability (#1256) 2019-01-05 20:36:05 -08:00
Preston Van Loon
aa4f66edeb fix some lint issues (#1239)
* fix some lint issues

* print error

* unname the unused params
2019-01-05 21:12:59 -06:00
renovate[bot]
493d4df18d Update dependency com_github_sirupsen_logrus to v1.3.0 (#1251) 2019-01-05 20:05:53 -05:00
renovate[bot]
d68654f016 Update org_golang_x_sys commit hash to badf558 (#1255) 2019-01-05 16:05:44 -08:00
renovate[bot]
e84faa23cb Update com_github_minio_sha256_simd commit hash to 66352e7 (#1250) 2019-01-05 12:26:44 -08:00
renovate[bot]
4a58e9cdc5 Update dependency com_github_miekg_dns to v1.1.2 (#1249) 2019-01-05 07:56:45 -08:00
terence tsao
074ac07dc8
Replace Validator Status Code With Activation/Exit Slot (#1233) 2019-01-04 22:39:07 -08:00
Raul Jordan
ccc2a4b91f
Process Validator Deposits (#1184) 2019-01-04 23:39:34 -06:00
Raul Jordan
7e1af4fceb
Remove Use of Proto .GetX for Value Getters (#1235) 2019-01-04 21:58:19 -06:00
renovate[bot]
2af217d17f Update com_github_minio_sha256_simd commit hash to e529fa1 (#1248) 2019-01-04 19:20:44 -08:00