Commit Graph

726 Commits

Author SHA1 Message Date
Paul Hauner
7cd963e6bb Update bootstrapper libp2p address finding 2019-08-15 18:48:39 +10:00
Paul Hauner
ce37f95861 Allow bootstrapper to scrape libp2p address 2019-08-15 16:41:02 +10:00
Paul Hauner
4678524659 Store intermediate states during block processing 2019-08-15 14:52:00 +10:00
Paul Hauner
b244826749 Get bootstrapper working for ENR address 2019-08-15 13:58:04 +10:00
Paul Hauner
fda208b103 Add --bootstrap arg to beacon node 2019-08-15 12:48:34 +10:00
Paul Hauner
c97b3b20cb Add best_slot method 2019-08-14 20:58:51 +10:00
Paul Hauner
bb166a2599 Fix rustc warnings 2019-08-14 18:58:01 +10:00
Paul Hauner
c93d2baa91 Add network routes to API 2019-08-14 18:24:42 +10:00
Paul Hauner
f2dedfac50 Merge branch 'block-processing-times' into bootstrap 2019-08-14 12:32:16 +10:00
Paul Hauner
072eb82fe4 Merge branch 'master' into block-processing-times 2019-08-14 12:25:28 +10:00
Paul Hauner
2bf0d5c071 Add beacon_block methods to rest api 2019-08-14 11:22:43 +10:00
Paul Hauner
cd26a19a70 Attestation processing (#497)
* Renamed fork_choice::process_attestation_from_block

* Processing attestation in fork choice

* Retrieving state from store and checking signature

* Looser check on beacon state validity.

* Cleaned up get_attestation_state

* Expanded fork choice api to provide latest validator message.

* Checking if the an attestation contains a latest message

* Correct process_attestation error handling.

* Copy paste error in comment fixed.

* Tidy ancestor iterators

* Getting attestation slot via helper method

* Refactored attestation creation in test utils

* Revert "Refactored attestation creation in test utils"

This reverts commit 4d277fe4239a7194758b18fb5c00dfe0b8231306.

* Integration tests for free attestation processing

* Implicit conflicts resolved.

* formatting

* Do first pass on Grants code

* Add another attestation processing test

* Tidy attestation processing

* Remove old code fragment

* Add non-compiling half finished changes

* Simplify, fix bugs, add tests for chain iters

* Remove attestation processing from op pool

* Fix bug with fork choice, tidy

* Fix overly restrictive check in fork choice.

* Ensure committee cache is build during attn proc

* Ignore unknown blocks at fork choice

* Various minor fixes

* Make fork choice write lock in to read lock

* Remove unused method

* Tidy comments

* Fix attestation prod. target roots change

* Fix compile error in store iters

* Reject any attestation prior to finalization

* Fix minor PR comments

* Remove duplicated attestation finalization check

* Remove awkward `let` statement
2019-08-14 10:55:24 +10:00
Paul Hauner
4f98a3985f Add first attempts at HTTP bootstrap 2019-08-14 10:36:55 +10:00
Paul Hauner
82e8aafb01 Remove awkward let statement 2019-08-13 19:59:29 +10:00
Paul Hauner
8fb9e1f648 Remove duplicated attestation finalization check 2019-08-13 19:48:03 +10:00
Paul Hauner
6cd0af766e Fix minor PR comments 2019-08-13 19:38:33 +10:00
Paul Hauner
b7e43b56f9 Fix minor PR comments 2019-08-13 19:37:14 +10:00
Paul Hauner
e410e89898 Merge branch 'block-processing-times' of github.com:sigp/lighthouse into block-processing-times 2019-08-13 18:26:07 +10:00
Paul Hauner
341a83b9e8 Tidy attestation metrics 2019-08-13 16:17:11 +10:00
Paul Hauner
a3e464078a Fix store block read metrics 2019-08-13 13:00:01 +10:00
Paul Hauner
b076b07022 Add more metrics, tidy existing metrics 2019-08-13 12:11:18 +10:00
Paul Hauner
e369e293a5 Make prom metric names more consistent 2019-08-13 09:20:39 +10:00
Paul Hauner
24b2f83713 Fix wrong state given to op pool prune 2019-08-13 07:35:52 +10:00
Paul Hauner
d5d60874e5 Remove http args 2019-08-12 18:20:05 +10:00
Paul Hauner
7165598b7f Add lighthouse_metrics gather fn 2019-08-12 18:19:50 +10:00
Paul Hauner
d7c546844c Fix broken beacon chain metrics, add slot clock metrics 2019-08-12 17:44:47 +10:00
Paul Hauner
95a320817e Update metrics names to be more like standard 2019-08-12 15:42:23 +10:00
Paul Hauner
6a1e5f6d26 Remove old http_server crate 2019-08-12 15:19:39 +10:00
Paul Hauner
af334b2cf0 Add metrics to HTTP server 2019-08-12 14:30:46 +10:00
Paul Hauner
cac0e5c832 Add basic metrics to libp2p 2019-08-12 14:16:20 +10:00
Paul Hauner
0b4a8893a4 Add more store metrics 2019-08-12 13:49:09 +10:00
Paul Hauner
913ee4694e Prefix BeaconChain metrics with "beacon_" 2019-08-12 13:35:16 +10:00
Paul Hauner
7140dbc45d Add extra prom beacon chain metrics 2019-08-12 13:26:58 +10:00
Paul Hauner
6150f0ae1a Prune op pool on finalization 2019-08-11 18:29:11 +10:00
Paul Hauner
78db947e6e Add beacon chain persistence metric 2019-08-11 18:28:57 +10:00
Paul Hauner
42d300bdc3 Add more beacon chain metrics 2019-08-11 17:49:32 +10:00
Paul Hauner
76f42ac7ff Remove hypen from prometheus metric name 2019-08-11 16:15:26 +10:00
Paul Hauner
441eb41b6b Add heavy metering to block processing 2019-08-11 15:53:34 +10:00
Paul Hauner
2108895fca Unify common metric fns into a crate 2019-08-11 15:34:10 +10:00
Paul Hauner
36ff115b04 Use global prometheus gather at rest api 2019-08-11 14:46:20 +10:00
Paul Hauner
e33d0703ef Make metrics not panic if already defined 2019-08-11 14:43:31 +10:00
Paul Hauner
9995b390b5 Move beacon_chain to new metrics structure. 2019-08-11 14:11:13 +10:00
Paul Hauner
48733917be Begin metrics refactor 2019-08-11 12:12:19 +10:00
Paul Hauner
4020d13064 Reject any attestation prior to finalization 2019-08-11 09:34:49 +10:00
Paul Hauner
6c9ebf4b96 Fix compile error in store iters 2019-08-11 09:15:39 +10:00
Paul Hauner
cd11eb15a5 Merge branch 'master' into attestation-processing 2019-08-11 09:08:26 +10:00
Paul Hauner
04bef689e3 Fix attestation prod. target roots change 2019-08-10 17:47:34 +10:00
Paul Hauner
963fb7bc87 Tidy comments 2019-08-10 17:36:53 +10:00
Paul Hauner
1beab66078 Remove unused method 2019-08-10 17:23:45 +10:00
Paul Hauner
989e2727d7 Changes to rest_api (#480)
* Add half-finished rest api changes

* Add basic, messy changes to rest api

* Fix expect() in ApiRequest

* Remove ApiRequest, add route for beacon state

* Tidy rest api, add get state from root

* Add api method for getting state roots by slot

* Add test for URL helper

* Simplify state_at_slot fn

* Add tests for rest api helper fns

* Add extra tests for parse root

* Fix clippy lints

* Fix compile error in rest api

* Update test to new ethereum-types
2019-08-10 17:15:15 +10:00