Commit Graph

1223 Commits

Author SHA1 Message Date
Paul Hauner
43b0a63c73 Remove old debugging code, fix API fault 2020-01-27 13:45:51 +11:00
Paul Hauner
e1ebdf38e5 Add more ffg tests 2020-01-27 13:11:23 +11:00
Paul Hauner
8a61904d83 Add API endpoint for fork choice 2020-01-27 12:51:28 +11:00
Paul Hauner
cc11e52f78 Remove old reduced_tree code fragment 2020-01-27 12:02:48 +11:00
Paul Hauner
aa0e9a460e Merge branch 'master' into proto-array 2020-01-24 17:00:32 +11:00
pscott
f8cff3bd2e Optimize block production (#820)
* Remove SignatureVerif on block production; short-circuit fetching attestations when num attestations < T::MaxAttestation

* Cargo fmt

* Remove short-circuiting
2020-01-23 11:35:13 +11:00
pscott
7396cd2cab Fix clippy warnings (#813)
* Clippy account manager

* Clippy account_manager

* Clippy beacon_node/beacon_chain

* Clippy beacon_node/client

* Clippy beacon_node/eth1

* Clippy beacon_node/eth2-libp2p

* Clippy beacon_node/genesis

* Clippy beacon_node/network

* Clippy beacon_node/rest_api

* Clippy beacon_node/src

* Clippy beacon_node/store

* Clippy eth2/lmd_ghost

* Clippy eth2/operation_pool

* Clippy eth2/state_processing

* Clippy eth2/types

* Clippy eth2/utils/bls

* Clippy eth2/utils/cahced_tree_hash

* Clippy eth2/utils/deposit_contract

* Clippy eth2/utils/eth2_interop_keypairs

* Clippy eth2/utils/eth2_testnet_config

* Clippy eth2/utils/lighthouse_metrics

* Clippy eth2/utils/ssz

* Clippy eth2/utils/ssz_types

* Clippy eth2/utils/tree_hash_derive

* Clippy lcli

* Clippy tests/beacon_chain_sim

* Clippy validator_client

* Cargo fmt
2020-01-21 18:38:56 +11:00
pscott
1abb964652 Update op_pool to use proper rewards (#707)
* Update op_pool to use proper rewards

* Fix missing use import for tests

* Address Michael's comments

* Revert to private ValidatorStatuses

* Rename variable for clearer code

* Fix update_cover function

* Remove expect

* Add WIP test for rewards

* Use aggregation_bits instead of earliest_attestation_validators

* Use earliest attestation in test and correct typo

* Fix op_pool test thanks to @michaelsproul 's help

* Change test name
2020-01-20 10:33:28 +11:00
Paul Hauner
dcea0b5084 Rename on_new_block fn 2020-01-20 07:12:52 +11:00
Paul Hauner
c546cab03f Ignore duplicate blocks in fork choice 2020-01-19 22:08:35 +11:00
Paul Hauner
10d37b26dc Fix compile error in fork choice tests 2020-01-17 16:17:39 +11:00
Paul Hauner
cf72a6cdcc Add metrics for log levels 2020-01-17 15:25:07 +11:00
Paul Hauner
991223db1e Rename JustificationManager 2020-01-17 12:48:29 +11:00
Paul Hauner
f136d38543 Add more detail to best node error 2020-01-17 09:13:34 +11:00
Paul Hauner
9d295b7e95 Add fork choice JSON dumping 2020-01-17 09:10:42 +11:00
Paul Hauner
2df71372d2 Add more fork choice tests 2020-01-16 17:02:19 +11:00
Paul Hauner
2052bcbf8e Start adding ffg tests 2020-01-16 15:49:26 +11:00
Paul Hauner
62ea0661a7 Shuffle files 2020-01-16 15:14:46 +11:00
Paul Hauner
4a60c06afe Add binary, re-org crate 2020-01-16 13:55:33 +11:00
Paul Hauner
72dc6db9dd Move test defs into crate 2020-01-16 13:32:37 +11:00
Paul Hauner
c33d358cc9 Create test def concept 2020-01-16 13:29:40 +11:00
Paul Hauner
d8afb0fc73 Make fork choice tests declarative 2020-01-16 13:20:23 +11:00
Paul Hauner
5cbb34cf62 Start adding new test format 2020-01-16 10:53:03 +11:00
Paul Hauner
2366c9ae48 Fix bug with epoch of attestation votes 2020-01-16 09:10:53 +11:00
Paul Hauner
85e761e563 Most remove ffg_update_required 2020-01-16 08:46:59 +11:00
Paul Hauner
a73aa5d673 Fix fork choice test compile errors 2020-01-15 17:30:44 +11:00
Paul Hauner
ea19227eac Merge branch 'master' into proto-array 2020-01-15 17:25:32 +11:00
Paul Hauner
76d7122b28 Add extra justification change check 2020-01-15 17:15:43 +11:00
Paul Hauner
029fb24858 Add more comments 2020-01-15 15:33:35 +11:00
Paul Hauner
90b57829b3 Clean out old comments 2020-01-15 15:05:20 +11:00
Paul Hauner
6f51db34e9 Add first pass at fixing filter 2020-01-15 14:40:09 +11:00
pscott
6285dc3aa7 Fix logic error in operation pool (#806) 2020-01-15 12:41:12 +11:00
Paul Hauner
486c74f6e9 Merge branch 'master' into proto-array + more changes 2020-01-15 07:46:07 +11:00
Paul Hauner
b8d33ae26b Integrate proto_array into lighthouse 2020-01-14 17:05:59 +11:00
Paul Hauner
0f9d0ff3b9 Rename lmd_ghost > proto_array_fork_choice 2020-01-14 12:50:21 +11:00
Paul Hauner
512b7fe4c0 Add ssz encoding, other pub fns 2020-01-14 12:48:47 +11:00
Paul Hauner
6bb453fc27 Tidy, finish pruning tests 2020-01-14 12:15:23 +11:00
Paul Hauner
cc7f8fe951 Re-organise crate 2020-01-14 10:08:30 +11:00
Paul Hauner
0ad799042c Add comments and fixes 2020-01-14 07:40:59 +11:00
Paul Hauner
d856f34300 Add more testing 2020-01-14 06:57:33 +11:00
Paul Hauner
374877cbf8 Add more tests 2020-01-13 19:01:39 +11:00
Paul Hauner
1eee093208 Modify tests 2020-01-13 18:46:16 +11:00
Paul Hauner
4324ce3a91 Remove old tests 2020-01-13 18:41:34 +11:00
Paul Hauner
092b0e532a Add more testing to proto-array 2020-01-13 18:41:10 +11:00
Paul Hauner
5da9dddd2c Add more fork choice tests 2020-01-13 17:58:14 +11:00
Paul Hauner
3853af1bca Add more fork choice testing 2020-01-13 16:54:21 +11:00
Paul Hauner
c9274813d8 Add fork choice testing 2020-01-13 16:34:02 +11:00
Paul Hauner
8f72c09862 Add more compute_deltas tests 2020-01-13 14:01:13 +11:00
Paul Hauner
899e8c74ef Start testing 2020-01-13 13:21:26 +11:00
Paul Hauner
120bcfa46b Combine two functions in to compute_deltas 2020-01-13 12:50:27 +11:00