lighthouse/beacon_node/eth1/src
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 e3d0325ae6d1040976d37eddf35fcc7ff2333cb8.

* 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
..
block_cache.rs Add support for gzip (#641) 2019-12-17 09:04:50 +11:00
deposit_cache.rs Make eth1 caching work with fast synced node (#709) 2019-12-20 09:37:39 +11:00
deposit_log.rs Eth1 Integration (#542) 2019-11-15 14:47:51 +11:00
http.rs Add support for gzip (#641) 2019-12-17 09:04:50 +11:00
inner.rs Make eth1 caching work with fast synced node (#709) 2019-12-20 09:37:39 +11:00
lib.rs Add more eth1 metrics (#728) 2019-12-17 10:20:27 +11:00
metrics.rs Add more eth1 metrics (#728) 2019-12-17 10:20:27 +11:00
service.rs Make eth1 caching work with fast synced node (#709) 2019-12-20 09:37:39 +11:00