Commit Graph

394 Commits

Author SHA1 Message Date
Age Manning
c06e8ffa5b Initial Libp2p RPC implementation. 2019-03-15 01:50:59 +11:00
Paul Hauner
8cc89b9820 Fix clippy warnings 2019-03-14 18:08:21 +11:00
Paul Hauner
2bfc8ed4da Fix failing doc test 2019-03-14 18:08:09 +11:00
Paul Hauner
122916acdd Merge branch 'master' into fix-test-harness 2019-03-14 18:01:57 +11:00
Paul Hauner
12214e7eed Ignore long running DB test 2019-03-14 15:11:03 +11:00
Age Manning
23a8fbfc74 Add default topics and initial topic subscription 2019-03-13 15:39:32 +11:00
Age Manning
8ee3523abd Transition to secp256k1 default peer id 2019-03-13 14:43:24 +11:00
Paul Hauner
6c4e457c8a Fix test_harness tests
They were broken by changes to TestingBeaconStateBuilder and where the
keypairs file is stored.
2019-03-13 11:25:17 +11:00
Paul Hauner
2d2ba6576b Remove old, superseded benches 2019-03-13 11:24:46 +11:00
Paul Hauner
f949919b9b Add comments to epoch_processing 2019-03-12 18:02:53 +11:00
Paul Hauner
dc221f3220 Make attester/proposer slashing builders test-only
They didn't do anything useful or safe for production.
2019-03-12 17:30:00 +11:00
Age Manning
ae983a9347 Basic networking service with channel 2019-03-12 17:28:11 +11:00
Paul Hauner
efd56ebe37 Ignore file-exists error. 2019-03-12 14:42:31 +11:00
Paul Hauner
cce88c9923 Improve DX for loading validator keys from file 2019-03-12 14:39:16 +11:00
Paul Hauner
f34ae86cde Add support for loading keypairs from file 2019-03-12 12:46:44 +11:00
Kirk Baird
25b08f0096 Run cargo fmt 2019-03-11 15:22:15 +11:00
Kirk Baird
191759dad0 Modify create_proof_of_possession, and verifying proof_of_possession in process_deposits 2019-03-11 15:18:45 +11:00
Kirk Baird
9c225936b6 Merge branch 'timing-report' of github.com:sigp/lighthouse into timing-report
Signed-off-by: Kirk Baird <baird.k@outlook.com>
2019-03-11 11:55:41 +11:00
Kirk Baird
df52669888 Add changes of create_proof_of_possession to pull 2019-03-11 11:55:09 +11:00
Paul Hauner
41844841c6 Update project tests to use new genesis structure 2019-03-11 11:52:16 +11:00
Paul Hauner
a77d1885a1 Refactor BeaconStateBuilder
Made it a production-only struct. All the testing stuff can be done with
BeaconStateBencher
2019-03-09 10:39:05 +11:00
Paul Hauner
ddac7540bc Allow test_harness to load validators from file. 2019-03-08 16:10:21 +11:00
Paul Hauner
4b21252ce4 Refactor BeaconChain and BeaconState genesis
Now it more easily supports using pre-build validator registries.
2019-03-08 15:33:45 +11:00
Paul Hauner
6efe2ad3e3 Add debug logs to test_harness prepare 2019-03-08 15:09:33 +11:00
Paul Hauner
e76b5e1c3a Re-work deposit generation for memory efficiency
Helps ensure that variables are dropped after they're finished being
used.
2019-03-08 15:06:13 +11:00
Paul Hauner
ec9e0bbddf Allow test_harness to load validators from file
Also adds a command to test_harness binary to generate validators
2019-03-08 13:18:02 +11:00
Age Manning
21032334ac Adds bootnodes to chainspec. Handles type correctly 2019-03-08 12:15:57 +11:00
Age Manning
c5a7c62d5d Updates to latest master. 2019-03-08 11:15:38 +11:00
Age Manning
3c51769428 Node listens on default port and connects to bootnodes. 2019-03-08 11:07:30 +11:00
Paul Hauner
b98f514d68 Break BeaconChainHarness validator gen into fn
Prepares for allowing for loading from file
2019-03-08 10:50:43 +11:00
Paul Hauner
9a964be58b Update test_harness clap args structure
Prepares it for adding a new subcommand
2019-03-08 10:50:12 +11:00
Paul Hauner
60098a051d Fix/silence clippy lints 2019-03-08 09:23:57 +11:00
Paul Hauner
1ef2652cac Add transfer processing to BeaconChain 2019-03-07 17:23:11 +11:00
Age Manning
9f13731d6d Implements a basic libp2p tcp,secio,mplex,gossipsub swarm. 2019-03-07 16:17:06 +11:00
Paul Hauner
195cb16a41 Update test_harness for spec v0.4.0 2019-03-07 14:29:21 +11:00
Paul Hauner
db3b6cba6d Introduce Fork struct to block_producer
It's a pretty crappy solution, IMO. It shouldn't really belong in
"duties" but this gets the job done for now.
2019-03-07 13:54:56 +11:00
Paul Hauner
5a21e19a31 Fix all compile errors from v0.4.0 update 2019-03-07 12:53:15 +11:00
Paul Hauner
a4e604a41e Update BeaconChain to spec v0.4.0 2019-03-07 12:25:29 +11:00
Paul Hauner
93ce7b59e7 Merge branch 'master' into v0.4.0-types 2019-03-07 12:03:27 +11:00
Age Manning
e8e4c4ab9b Adds basic structure for swarm behaviour and topology. 2019-03-07 11:43:55 +11:00
Age Manning
ac639c6427 Add libp2p transport - tcp/ws/secio and multiplexing. 2019-03-06 23:31:08 +11:00
Michael Sproul
6253167cac Update ethereum-types to 0.5 2019-03-06 10:08:35 +11:00
Michael Sproul
d519bc1388 Use cfg(test) for test macros 2019-03-05 17:29:08 +11:00
Age Manning
b68adc1ae3 Implement skeleton network/sync framework. 2019-03-04 18:31:01 +11:00
Paul Hauner
663d39739f Do project-wide s/epoch_length/slots_per_epoch/g 2019-03-04 17:51:54 +11:00
Age Manning
3b8f29a914 [Temp Commit] Implements more basic skeleton code. 2019-03-04 16:39:37 +11:00
Paul Hauner
ef006bfb2c Add Exit support to test_harness 2019-03-04 12:21:24 +11:00
Paul Hauner
f4d8b41a09 Add Exit inclusion queue to BeaconChain 2019-03-04 12:20:59 +11:00
Paul Hauner
bc4acd9a5c Re-work module structure in test_harness
Obeys the standard where structs live in files with the same name
2019-03-04 09:43:19 +11:00
Paul Hauner
3aaa3ea024 Use clearer types in test_harness::Config 2019-03-04 09:30:09 +11:00