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
Paul Hauner
d7761ec7b7
Remove old reduced_tree fork choice
2020-01-13 12:49:49 +11:00
Paul Hauner
beb512219a
Move impls in LmdGhost trait def
2020-01-13 06:31:37 +11:00
Paul Hauner
812be82567
Tidy, add incomplete LmdGhost impl
2020-01-12 18:44:04 +11:00
Paul Hauner
c1c70f1b85
Add refactored version
2020-01-12 18:01:36 +11:00
Paul Hauner
6ef1488de3
Add half-finished modifications
2020-01-12 11:24:32 +11:00
Paul Hauner
e771cff1ef
Add tree filtering
2020-01-12 08:17:00 +11:00
Paul Hauner
32c21da9a6
Add progress
2020-01-11 21:00:14 +11:00
Paul Hauner
aea40caa1e
Add further progress
2020-01-11 18:54:26 +11:00
Paul Hauner
4579c8cceb
Add unfinished progress
2020-01-07 16:39:18 +11:00
Paul Hauner
c5ee929439
Add progress
2020-01-07 12:34:41 +11:00
Paul Hauner
92e7b601b5
Start implementing proto_array
2020-01-07 10:50:55 +11:00
Age Manning
55680ab1d3
Update libp2p and updates gossipsub ( #764 )
...
* Update gossipsub, adds anonymous source
* Remove temp protobuf fix
2020-01-03 17:56:03 +11:00
Pawan Dhananjay
7320f8497f
Remove the logic allowing lighthouse to update it's own ENR ( #682 )
...
* Set random port when zero-port option is set
* Remove logic allowing lighthouse to update its own ENR
* Discovery address is set to localhost by default
* Return error if discovery-addr isn't explicit
2020-01-03 15:37:05 +11:00
Paul Hauner
647034b637
Optimization: avoid recomputing known state roots ( #762 )
...
* Start adding optimization
* Add temp fix for protobuf issue
* Fix compile errors
* Fix protobuf import
2020-01-03 15:09:00 +11:00
pscott
39df89521f
Fix --datadir cli option ( #753 )
...
* Fix datadir bug; fix clippy warnings; update error message
* Cargo fmt
* Update error message
2020-01-03 11:00:13 +11:00
pscott
50ea669e1e
Update CONTRIBUTING.md ( #751 )
...
* Replace gitter with Discord; fix typos; Specify the need to sign commits
* Add link to contributing document in lighthouse book
2020-01-03 10:45:53 +11:00
Age Manning
01ac60d638
Documents and simplifies syncing code ( #738 )
...
* Add duplication prevention to gossipsub
* Clean up topic logs
* Add content addressed messages for gossip
* Support BlocksByRange step parameter
* Add initial docs to syncing
* Adds documentation and simplify code in sync
* Remove unnecessary comment
* Fix fmt issue
* Add batch log to sync
2019-12-23 21:23:14 +11:00
mkinney
3acb3cc640
got Docker image down to 138mb from 1.8gb ( #749 )
2019-12-20 18:30:38 +11:00
Age Manning
41d6d5fafd
Adds support for the step parameter in BlocksByRange request ( #737 )
...
* Add duplication prevention to gossipsub
* Clean up topic logs
* Add content addressed messages for gossip
* Support BlocksByRange step parameter
2019-12-20 17:12:16 +11:00
Age Manning
45271abc16
Filter gossipsub message duplication ( #736 )
...
* Add duplication prevention to gossipsub
* Clean up topic logs
* Add content addressed messages for gossip
2019-12-20 16:26:30 +11:00
Pawan Dhananjay
74b327b50d
Make eth1 caching work with fast synced node ( #709 )
...
* Add functions to get deposit_count and deposit_root from deposit cache
* Fetch deposit root and deposit count from cache
* Fix bugs
* Add test
* Compare deposit_count between the caching and http eth1 blocks
* Revert "Compare deposit_count between the caching and http eth1 blocks"
This reverts commit e3d0325ae6 .
* Fetch deposit cache using binary search instead of linear search
* BlockCache waits till DepositCache is in sync
* Truncate required_blocks in block_cache upto latest_processed_block in deposit cache
* Clean up
* Handled getting deposit count before deploying deposit contract
* More cleanup
* Remove calls to http get deposit/count
* Fix block cache tests
* Minor changes
* Fix bootnode ports
* Address some of Paul's comments
* Optimize `get_deposit_root` by caching `DepositDataTree`
* Fix comments and minor changes
* Change eth1 default config parameters
* Use `Vec` instead of `HashMap` to store `deposit_roots`
* Minor renaming
2019-12-20 09:37:39 +11:00
Paul Hauner
251aea645c
Make API friendly to block explorers ( #702 )
...
* Add validator index to duties response
* Add `get_state` method to beacon chain
* Improve /beacon/validators endpoint
* Add validators/all and validators/active endpoints
* Start refactor of HTTP docs
* Document /beacon/heads endpoint
* Remove some unused API endpoints
* Improve API docs
* Add methods to get all validator duties
* Improve docs
* Remove dead links
* Make tables left-justified
* Add /consensus/vote_count endpoint
* Add /consensus/individual_votes endpoint
* Update formatting
* Tidy
* Add committees endpoint
* Strictly require 0x prefix for serde in BLS
* Update docs to have 0x prefix
* Fix failing tests
* Add unfinished code
* Improve testing, fix bugs
* Tidy, ensure all beacon endpoints smoke tested
* Fix pubkey cache error
* Address comments with docs
2019-12-19 11:45:28 +11:00
Pawan Dhananjay
d756bc9ecd
Fix bootnode ports ( #743 )
2019-12-18 22:40:19 +11:00
pscott
e9149f4580
Enable bulk signature verification ( #739 )
...
* Change verification strategy
* Update EF tests
2019-12-18 12:22:50 +11:00
Paul Hauner
03ed66e933
Add banner for testnet being down ( #741 )
...
LGTM!
2019-12-18 10:44:54 +11:00
Paul Hauner
49eef178cf
Clean cargo in dockerfile ( #735 )
2019-12-18 10:36:42 +11:00
pscott
e7de1b3339
Delete outdated deposits handling in operation pool ( #719 )
2019-12-17 10:37:12 +11:00
Paul Hauner
34f003adb8
Add more eth1 metrics ( #728 )
...
* Add metrics for junk eth1 votes
* Add eth1 cache metrics
2019-12-17 10:20:27 +11:00
pscott
61be1491a1
Add support for gzip ( #641 )
...
* add support for gzip
* Fix clippy warnings
* Fix additional clippy warnings and optimized get_deposits function
* Fix get_deposits function call
* Add simulator to CI
* Install ganache before running sim
2019-12-17 09:04:50 +11:00
Paul Hauner
5e4cf2f3da
Add simulator to CI ( #723 )
...
* Add simulator to CI
* Install ganache before running sim
2019-12-17 08:48:20 +11:00
pscott
0694d1d0ec
Create backup instead of overwriting log files ( #686 )
...
* Create backup instead of overwriting log files
* Clean variable names
* Return string instead of expect on SystemTimeError
* Cargo fmt after merge
2019-12-15 05:59:20 +11:00
pscott
b1d4284524
Add logging level when using logfile ( #721 )
2019-12-13 16:11:43 +11:00
Michael Sproul
5e7803f00b
Clean up database metrics, add freezer DB size ( #715 )
...
* Clean up database metrics, add freezer DB size
* Address review comments
2019-12-13 13:30:58 +11:00