Commit Graph

972 Commits

Author SHA1 Message Date
Leandro Lugaresi
d061c784e0 Added Prometheus Client and p2p Metrics (#673)
* Added prometheus client and p2p metrics

* Avoid run the adapter if the metrics are disabled

* fix visibility issue

* Fix invalid p2p.Message sent to Adapters

The middlewares (adapters) must receive the complete message to avoid
problems and the main Handler must get the values from middlewares

Also, added tests and comments for metrics package

* Added logrus hook collector

This collector is used to collect counters of log messages.
The main purpose of these metric is to know how many warnings and errors
the system are getting.

* Add hook when register the prometheus service

* update bazel builds

* fix emit tests and remove unused imports

* gazelle --fix

* remove unused logger

* move prometheus package to shared directory

* better metric names and fix metric paths

* improve metric tests and start to use promauto

* added prometheus initial documentation

* fix tests

* fix type differences with go get and bazel

* Fix service test
2018-11-15 07:54:45 -05:00
Preston Van Loon
ebcd772f67
Batch renovate updates (#774)
* Update com_github_go_yaml_yaml commit hash to 51d6538

* Update com_github_libp2p_go_libp2p_circuit commit hash to f83937e

* Update com_github_libp2p_go_libp2p_crypto commit hash to 3120e9f
2018-11-15 07:48:58 -05:00
renovate[bot]
c2794b1d8a Update com_github_libp2p_go_addr_util commit hash to 6e2ee01 (#767) 2018-11-15 07:25:15 -05:00
renovate[bot]
0fa79cd3cf Update com_github_libp2p_go_libp2p_blankhost commit hash to 23a786e (#770) 2018-11-15 00:54:11 -05:00
renovate[bot]
f6a86b082e Update com_github_libp2p_go_conn_security commit hash to 42db08f (#768) 2018-11-14 21:39:46 -08:00
renovate[bot]
762b2730c2 Update com_github_libp2p_go_conn_security_multistream commit hash to cda5d4f (#769) 2018-11-14 23:22:46 -05:00
renovate[bot]
0773f44846 Update com_github_jackpal_go_nat_pmp commit hash to d89d09f (#766) 2018-11-14 23:07:51 -05:00
terence tsao
e1137e5801 Allow Beacon Node to Connect to Bootstrap Node for Peer Discovery (#740)
* start sequence for node to connect to bootstrap nodes

* lint

* maybe warning is more appropiate?

* fix gazelle

* preston's feedback

* add go-ipfs-addr to workspace

* move flag to shared

* removed routed host
2018-11-14 21:25:06 -05:00
renovate[bot]
19f6e641e4 Update com_github_ipfs_go_log commit hash to de9a213 (#765) 2018-11-14 21:16:14 -05:00
renovate[bot]
2003f9ff24 Update com_github_ipfs_go_datastore commit hash to 277eeb2 (#763) 2018-11-14 21:12:40 -05:00
renovate[bot]
a928d72a2b Update com_github_ipfs_go_ipfs_util commit hash to 05b6094 (#764) 2018-11-14 21:10:20 -05:00
renovate[bot]
5426ffca88 Update com_github_huin_goupnp commit hash to 656e61d (#762) 2018-11-14 21:06:32 -05:00
renovate[bot]
5cf93fdc1b Update com_github_golang_mock commit hash to 8a44ef6 (#760) 2018-11-14 21:03:15 -05:00
renovate[bot]
f5e11e2f3e Update com_github_gorilla_websocket commit hash to 483fb8d (#761) 2018-11-14 20:59:58 -05:00
renovate[bot]
8e9a03c228 Update com_github_fjl_memsize commit hash to 2a09253 (#758) 2018-11-14 20:54:36 -05:00
renovate[bot]
9dd9800139 Update com_github_golang_lint commit hash to c67002c (#759) 2018-11-14 20:45:13 -05:00
renovate[bot]
1c757abbbe Update com_github_aristanetworks_goarista commit hash to 5faa74f (#755) 2018-11-14 20:24:17 -05:00
renovate[bot]
fe9dad3c02 Roll back dependency com_github_multiformats_go_multiaddr to 1 (#754) 2018-11-14 18:46:28 -05:00
renovate[bot]
9de01f70bd Update com_github_btcsuite_btcd commit hash to 67e573d (#756) 2018-11-14 17:34:35 -05:00
renovate[bot]
6fd6e989ec Roll back dependency com_github_libp2p_go_libp2p_routing to 2 (#753) 2018-11-14 15:52:12 -05:00
terence tsao
a0569ee7ad Fixed Validator Shuffling (#749)
* fixed parent hashes copy bug

* use data
2018-11-14 15:24:34 -05:00
renovate[bot]
0e28b667f3 Update dependency build_bazel_rules_nodejs to v0.16.0 (#750) 2018-11-14 15:23:36 +08:00
terence tsao
9e096302d2
revert 2 initial committees to 3 (#746) 2018-11-13 07:26:47 -08:00
terence tsao
6520c8ffc2 Fixed GetShardAndCommitteesForSlot index out of range (#744)
* fixed committees index offset

* remove debug logs

* aligned tests
2018-11-12 13:29:32 -05:00
terence tsao
5d15afe326 Update README.md (#742) 2018-11-11 15:18:52 -05:00
Jie Hou
0de655eaab Move BlockVoteCache out of ActiveState (#739) 2018-11-11 08:54:17 -08:00
Preston Van Loon
82d743094e
Add basic bootnode (#735)
* Add basic bootnode

* Add comment

* fix logging
2018-11-10 12:32:45 -05:00
Yutaro Mori
8235c35e07
Various Fixes to Allow State Recalculation to Succeed (#733)
* Allow state recalculations to correctly advance

* fixes

* comments
2018-11-08 19:13:50 +01:00
terence tsao
3c6952c510
Synchronize Beacon Node with Spec (#719) 2018-11-08 09:19:39 -08:00
terence tsao
4c6565d419 Integers to Bytes Helper Methods (#734)
* Change validator functions done

* implemented helper methods to convert int to bytes

* use them across prysm

* bazel gazelle

* forgot build.bazel
2018-11-08 11:52:51 -05:00
Nishant Das
37bc1c67be
Adding Basic Private Key Management (#671)
* adding flags

* adding modified key utils

* adding more funcs

* more changes

* more changes

* documentation

* changes to node

* gazelle

* fixing bazel build

* gazelle

* adding tests

* more tests

* addressing terence's feedback

* adding geth header

* test

* changes

* fixedd it

* fixed marshalling

* adding more to tests

* gazelle

* adding more tests

* lint

* add cov

* cov

* fix imports
2018-11-08 11:22:31 +08:00
Raul Jordan
6476fb54af
Dynamic Chain Test Language Package With YAML Parser (#681) 2018-11-07 14:07:41 -05:00
Preston Van Loon
e330249e49
Enable DHT support for p2p peer discovery (#730) 2018-11-06 20:52:36 -05:00
Yutaro Mori
d7bfa1c3b4 Delete test files before running tests (#729) 2018-11-06 13:43:10 -08:00
Ivan Martinez
b8eb25843f Updates Public Key from bytes32 to bytes in Validator Registration Contract (#630) 2018-11-06 15:13:46 -06:00
Yutaro Mori
278a81032f
Always pass an item through channel when processing blocks (#728) 2018-11-06 21:48:11 +01:00
renovate[bot]
15563ae265 Update dependency build_bazel_rules_nodejs to v0.15.3 (#725) 2018-11-06 10:04:18 -05:00
renovate[bot]
d4fb71efa3 Update dependency io_bazel_rules_go to v0.16.2 (#726) 2018-11-06 06:38:19 -05:00
renovate[bot]
f3dec630dd Update dependency bazel_gazelle to v0.15.0 (#724) 2018-11-05 20:48:50 -05:00
renovate[bot]
02eb3f280e Pin dependency solium to 1.1.8 (#723) 2018-11-06 01:40:22 +00:00
renovate[bot]
ae1138e0e8 Add renovate.json (#722) 2018-11-05 20:32:13 -05:00
terence tsao
8dc3fb5c85
Removed Demo Debug Flags (#680) 2018-11-05 18:35:50 +01:00
Preston Van Loon
3118947271
Update libp2p deps (#717)
* Revert "Fix LibP2P Global Proto Bug on Travis (#690)"

This reverts commit 7300204176.

* update libp2p deps

* goimports
2018-11-03 12:59:39 -04:00
Yutaro Mori
4db3a3f2d1
Properly clean up attestations during state transitions (#705) 2018-11-03 16:50:14 +04:00
terence tsao
8408315f9c switch ethereum 2.0 to ethereum serenity (#714) 2018-11-01 07:02:01 -04:00
Jerry Fireman
3868b6bbe7 Update readme file to include section on running under windows (#715) 2018-11-01 06:59:52 -04:00
terence tsao
80d6c60769 fixed error strings (#708) 2018-10-31 23:05:55 +01:00
Raul Jordan
95625629f7
Disable Codecov Patch As It Is Unreliable (#713) 2018-10-30 17:00:20 +01:00
Yutaro Mori
370065593f Fix parent attestation check (#700) 2018-10-24 15:14:58 +08:00
Yutaro Mori
dd0a15abb2
Convert remaining int config values to uint64 (#695) 2018-10-24 01:37:17 +09:00