lighthouse/beacon_node
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
..
beacon_chain Make API friendly to block explorers (#702) 2019-12-19 11:45:28 +11:00
client Clean up database metrics, add freezer DB size (#715) 2019-12-13 13:30:58 +11:00
eth1 Make eth1 caching work with fast synced node (#709) 2019-12-20 09:37:39 +11:00
eth2-libp2p Reduced num_nodes in full_mesh gossipsub test (#718) 2019-12-12 22:38:38 +11:00
genesis Implements a timeout for peer banning (#665) 2019-12-06 14:13:43 +11:00
network Sync Re-Write (#663) 2019-12-09 18:50:21 +11:00
rest_api Make API friendly to block explorers (#702) 2019-12-19 11:45:28 +11:00
src Validator on-boarding docs (#656) 2019-12-09 22:42:36 +11:00
store Clean up database metrics, add freezer DB size (#715) 2019-12-13 13:30:58 +11:00
tests Prepare for public testnet (#628) 2019-12-03 15:28:57 +11:00
version Apply clippy suggestions 2019-03-19 23:20:39 +11:00
websocket_server Improve beacon node logging (#660) 2019-12-06 18:44:38 +11:00
Cargo.toml Implements a timeout for peer banning (#665) 2019-12-06 14:13:43 +11:00