Commit Graph

1197 Commits

Author SHA1 Message Date
Paul Hauner
e523ee84e3 Ensure boot_enr.yaml is include in binary 2019-11-30 14:32:59 +11:00
Paul Hauner
da39d6e9d6 Extend BeaconChain persistence testing 2019-11-30 13:57:44 +11:00
Paul Hauner
a2d071e681 Add tests for BeaconChain persistence + fix bugs 2019-11-30 13:33:07 +11:00
Paul Hauner
10929e8255 Update hardcoded testnet 2019-11-29 18:02:05 +11:00
Paul Hauner
2537f7c0ca Merge branch 'fork-choice-restore' into eth1-deploy 2019-11-29 17:03:07 +11:00
Paul Hauner
7da8003f45 Add fork choice persistence 2019-11-29 16:45:27 +11:00
Pawan Dhananjay
3a05c6f924 Reduced tree encode/decode (#624)
* Fix custom derive macros

* Add `ReducedTreeSsz` to encode/decode `ReducedTree` to/from bytes

* Add test for bytes conversion

* Improve error handling

* Improve conversion functions

* Remove unnecessary modifiers

* Address Paul's review comments
2019-11-29 13:21:31 +11:00
Paul Hauner
3fd482263e Merge branch 'master' into eth1-deploy 2019-11-29 13:17:06 +11:00
Paul Hauner
f43fe4d123 Remove ---/n from the start of testnet_dir files 2019-11-29 09:20:57 +11:00
Paul Hauner
ed2eaf8d9b Write genesis state as SSZ 2019-11-29 08:39:28 +11:00
Paul Hauner
2016c22e45 Add a hardcoded eth2 testnet config 2019-11-28 15:22:04 +11:00
Paul Hauner
e31f76e79b Upgrade tesnet deposit contract version 2019-11-28 14:58:53 +11:00
Paul Hauner
2577136ba7 Add support for YamlConfig in Eth2TestnetDir 2019-11-28 14:49:15 +11:00
Paul Hauner
c04026d073 Remove duplication from bad merge (#642) 2019-11-28 14:45:00 +11:00
Paul Hauner
defe28b183 Fix bug in master merge 2019-11-28 13:24:00 +11:00
Paul Hauner
d32246b76c Merge branch 'master' into eth1-deploy 2019-11-28 13:21:28 +11:00
Paul Hauner
0dd1d3d442 Add lcli eth1-genesis command 2019-11-28 13:20:58 +11:00
pscott
7bdddd682c Apply eth2.0 config spec to ChainSpec (#605)
* Allow slot clock to work on genesis

* Loose over-strict requirements for slot clock tests

* fix slots_per_eth1_voting_period

* add utils for domain serializing and deserializing

* add serde_yaml to cargo

* add tmpdir to cargo

* cargo fmt src/utils

* add YamlConfig, allowing to serialize and deserialize yaml config files

* update to v0.9.1

* Comment out local tests

* update milliseconds_per_slot for minimal

* add safe_slots_to_update_justified

* Update to v0.9.1 and add deny_unknown_fields

* Specify that max_epochs_per_crosslink is for phase1

* Remove test stubs

* Use get to avoid panicking in serde_utils

* Use ? operator instead of explicit match return
2019-11-28 13:20:16 +11:00
Paul Hauner
73ead55235 Refactor beacon node CLI 2019-11-28 10:31:51 +11:00
Paul Hauner
66d624e538 Fix failing test in deposit_contract 2019-11-27 13:47:25 +11:00
Paul Hauner
280bb455d0 Merge branch 'master' into eth1-deploy 2019-11-27 12:49:04 +11:00
Michael Sproul
bf2eeae3f2 Implement freezer database (#508)
* Implement freezer database for state vectors

* Improve BeaconState safe accessors

And fix a bug in the compact committees accessor.

* Banish dodgy type bounds back to gRPC

* Clean up

* Switch to exclusive end points in chunked vec

* Cleaning up and start of tests

* Randao fix, more tests

* Fix unsightly hack

* Resolve test FIXMEs

* Config file support

* More clean-ups, migrator beginnings

* Finish migrator, integrate into BeaconChain

* Fixups

* Fix store tests

* Fix BeaconChain tests

* Fix LMD GHOST tests

* Address review comments, delete 'static bounds

* Cargo format

* Address review comments

* Fix LMD ghost tests

* Update to spec v0.9.0

* Update to v0.9.1

* Bump spec tags for v0.9.1

* Formatting, fix CI failures

* Resolve accidental KeyPair merge conflict

* Document new BeaconState functions

* Fix incorrect cache drops in `advance_caches`

* Update fork choice for v0.9.1

* Clean up some FIXMEs

* Fix a few docs/logs

* Update for new builder paradigm, spec changes

* Freezer DB integration into BeaconNode

* Cleaning up

* This works, clean it up

* Cleanups

* Fix and improve store tests

* Refine store test

* Delete unused beacon_chain_builder.rs

* Fix CLI

* Store state at split slot in hot database

* Make fork choice lookup fast again

* Store freezer DB split slot in the database

* Handle potential div by 0 in chunked_vector

* Exclude committee caches from freezer DB

* Remove FIXME about long-running test
2019-11-27 10:54:46 +11:00
Paul Hauner
78d82d9193 Validator client refactor (#618)
* Update to spec v0.9.0

* Update to v0.9.1

* Bump spec tags for v0.9.1

* Formatting, fix CI failures

* Resolve accidental KeyPair merge conflict

* Document new BeaconState functions

* Add `validator` changes from `validator-to-rest`

* Add initial (failing) REST api tests

* Fix signature parsing

* Add more tests

* Refactor http router

* Add working tests for publish beacon block

* Add validator duties tests

* Move account_manager under `lighthouse` binary

* Unify logfile handling in `environment` crate.

* Fix incorrect cache drops in `advance_caches`

* Update fork choice for v0.9.1

* Add `deposit_contract` crate

* Add progress on validator onboarding

* Add unfinished attesation code

* Update account manager CLI

* Write eth1 data file as hex string

* Integrate ValidatorDirectory with validator_client

* Move ValidatorDirectory into validator_client

* Clean up some FIXMEs

* Add beacon_chain_sim

* Fix a few docs/logs

* Expand `beacon_chain_sim`

* Fix spec for `beacon_chain_sim

* More testing for api

* Start work on attestation endpoint

* Reject empty attestations

* Allow attestations to genesis block

* Add working tests for `rest_api` validator endpoint

* Remove grpc from beacon_node

* Start heavy refactor of validator client

- Block production is working

* Prune old validator client files

* Start works on attestation service

* Add attestation service to validator client

* Use full pubkey for validator directories

* Add validator duties post endpoint

* Use par_iter for keypair generation

* Use bulk duties request in validator client

* Add version http endpoint tests

* Add interop keys and startup wait

* Ensure a prompt exit

* Add duties pruning

* Fix compile error in beacon node tests

* Add github workflow

* Modify rust.yaml

* Modify gitlab actions

* Add to CI file

* Add sudo to CI npm install

* Move cargo fmt to own job in tests

* Fix cargo fmt in CI

* Add rustup update before cargo fmt

* Change name of CI job

* Make other CI jobs require cargo fmt

* Add CI badge

* Remove gitlab and travis files

* Add different http timeout for debug

* Update docker file, use makefile in CI

* Use make in the dockerfile, skip the test

* Use the makefile for debug GI test

* Update book

* Tidy grpc and misc things

* Apply discv5 fixes

* Address other minor issues

* Fix warnings

* Attempt fix for addr parsing

* Tidy validator config, CLIs

* Tidy comments

* Tidy signing, reduce ForkService duplication

* Fail if skipping too many slots

* Set default recent genesis time to 0

* Add custom http timeout to validator

* Fix compile bug in node_test_rig

* Remove old bootstrap flag from val CLI

* Update docs

* Tidy val client

* Change val client log levels

* Add comments, more validity checks

* Fix compile error, add comments

* Undo changes to eth2-libp2p/src

* Reduce duplication of keypair generation

* Add more logging for validator duties

* Fix beacon_chain_sim, nitpicks

* Fix compile error, minor nits

* Address Michael's comments
2019-11-25 15:48:24 +11:00
Paul Hauner
0d22990056 Merge branch 'kill-grpc' into eth1-deploy 2019-11-25 15:18:47 +11:00
Paul Hauner
65cbf601ae Address Michael's comments 2019-11-25 15:11:27 +11:00
Paul Hauner
140a0517a7 Make account manager submit deposits 2019-11-25 10:51:11 +11:00
Paul Hauner
4b15d4f433 Progress with account_manager deposit tools 2019-11-25 09:33:11 +11:00
Paul Hauner
2fdd130f4c Add efforts to automate eth1 testnet deployment 2019-11-24 18:51:37 +11:00
Paul Hauner
ad65d72814 Update to use v0.9.2 version of deposit contract 2019-11-24 16:38:15 +11:00
Pawan Dhananjay
3ca63cfa83 Fix custom derive macros (#621) 2019-11-24 12:00:49 +11:00
Paul Hauner
ca46a3086f Add custom http timeout to validator 2019-11-23 18:01:35 +11:00
Paul Hauner
f76f97a3fd Tidy signing, reduce ForkService duplication 2019-11-23 17:02:39 +11:00
Paul Hauner
68942318a7 Attempt fix for addr parsing 2019-11-23 15:20:29 +11:00
Paul Hauner
466eb0420f Fix warnings 2019-11-23 13:13:29 +11:00
Paul Hauner
be7346d3ea Add different http timeout for debug 2019-11-22 19:51:52 +11:00
Paul Hauner
f4b78e6133 Add version http endpoint tests 2019-11-22 16:26:11 +11:00
Paul Hauner
af20a345bc Add validator duties post endpoint 2019-11-22 15:20:58 +11:00
Paul Hauner
114067bb50 Start heavy refactor of validator client
- Block production is working
2019-11-22 01:22:05 +11:00
Paul Hauner
cd0079dabf Merge branch 'deposit-flow' into kill-grpc 2019-11-21 14:24:02 +11:00
Michael Sproul
24e941d175 Update to spec v0.9.1 (#597)
* Update to spec v0.9.0

* Update to v0.9.1

* Bump spec tags for v0.9.1

* Formatting, fix CI failures

* Resolve accidental KeyPair merge conflict

* Document new BeaconState functions

* Fix incorrect cache drops in `advance_caches`

* Update fork choice for v0.9.1

* Clean up some FIXMEs

* Fix a few docs/logs
2019-11-21 11:47:30 +11:00
Paul Hauner
89a311ef20 Add working tests for rest_api validator endpoint 2019-11-21 11:18:21 +11:00
Paul Hauner
64f3d819f7 Merge branch 'v0.9' into api-testing 2019-11-21 09:35:13 +11:00
Michael Sproul
601951ae99 Fix a few docs/logs 2019-11-19 14:49:14 +11:00
Michael Sproul
d05774d229 Clean up some FIXMEs 2019-11-19 12:19:13 +11:00
Michael Sproul
70e0528587 Merge remote-tracking branch 'origin/master' into v0.9 2019-11-19 11:04:17 +11:00
Paul Hauner
ad40c4ac47 Add unfinished attesation code 2019-11-18 19:24:16 +11:00
Paul Hauner
c1b541867e Add progress on validator onboarding 2019-11-18 18:07:59 +11:00
Paul Hauner
8561a95ee9 Add deposit_contract crate 2019-11-18 16:08:19 +11:00
Michael Sproul
0eb24bb198 Update fork choice for v0.9.1 2019-11-18 12:12:44 +11:00
Michael Sproul
d9467a8ebb Fix incorrect cache drops in advance_caches 2019-11-18 12:12:03 +11:00