Paul Hauner
71947641a6
Fix bug in checkpoint manager
2020-01-17 16:12:22 +11:00
Paul Hauner
fd0a1c44aa
Add cache metrics
2020-01-17 14:59:42 +11:00
Paul Hauner
52dfb61de0
Fix justified balances bug
2020-01-17 14:53:06 +11:00
Paul Hauner
cd5c8a3d9f
Tidy
2020-01-17 13:01:06 +11:00
Paul Hauner
b55687cf9d
Move checkpoint manager into own file
2020-01-17 13:00:25 +11:00
Paul Hauner
991223db1e
Rename JustificationManager
2020-01-17 12:48:29 +11:00
Paul Hauner
272c16c2f2
Ensure fin+just checkpoints from from same block
2020-01-17 11:40:21 +11:00
Paul Hauner
9d295b7e95
Add fork choice JSON dumping
2020-01-17 09:10:42 +11:00
Paul Hauner
2366c9ae48
Fix bug with epoch of attestation votes
2020-01-16 09:10:53 +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
fbfe77b307
Fix test compile errors
2020-01-15 16:24:59 +11:00
Paul Hauner
61c8781554
Adjust TODO
2020-01-15 16:02:58 +11:00
Age Manning
13e74e5352
Correct stream timeout delay queue handling ( #803 )
...
* Correct stream timeout delay queue handling
* Correct small typo
2020-01-15 15:50:01 +11:00
Paul Hauner
cba0d9a48c
Attempt to fix prune error
2020-01-15 15:43:50 +11:00
Age Manning
c184a98170
Sync fixes ( #801 )
...
* Randomize peer selection for batch errors
* Downgrade attestation logging
* Handle range sync errors
* Update lock file
* Downgrade logs
* Decrease batch size for better thread handling
* Optimise peer selection in range sync
2020-01-15 14:48:09 +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
271fdd4fb9
Bumb version tags ( #792 )
2020-01-10 16:01:37 +11:00
Paul Hauner
55a6dc9ae3
Notifier errors ( #793 )
...
* Handle notifier errors
* Log error for notifier errors
2020-01-10 16:01:22 +11:00
Michael Sproul
5a8f2dd961
Increase default slots per restore point to 2048 ( #790 )
...
This should reduce disk usage by 32x while keeping historical state queries to
less than 10s. If historical states are required quickly, the minimum SPRP of 32
can be set on the CLI.
2020-01-10 14:42:49 +11:00
Age Manning
b3712d8e9b
Discv5 upgrade ( #788 )
...
* Update discv5 to delay queues for timeouts
* Further discv5 bug fixes
2020-01-10 14:35:07 +11:00
Paul Hauner
698af6d7ec
Update docs for testnet3 ( #773 )
...
* Start docker docs
* Add progress
* Update docker.md
* Add note about geth syncing
* Fix env to use geth
* Update docs
* Remove sigp goerli node
* Change text about eth1 syncing
* Address comments from @pscott
* Add links to beaconcha.in
* Add instructions for starting an eth1 node
* Fix typo
* Re-organise Syncing log
2020-01-10 13:56:48 +11:00
Age Manning
1aaeb6b505
Upgrades trace logging for Sync RPC method ( #784 )
2020-01-10 02:01:03 +11:00
Michael Sproul
95fc840e2c
Fix off-by-one error in get_latest_restore_point ( #787 )
...
* Fix off-by-one error in get_latest_restore_point
* Tighten SPRP checks for succinct hot DB change
2020-01-09 21:05:56 +11:00
Michael Sproul
d9e9c17d3b
Avoid building caches during block replay ( #783 )
...
Also, make the ExitCache safe.
2020-01-09 11:43:11 +11:00
Paul Hauner
da95a73605
Fix typo in eth1 service ( #782 )
2020-01-09 10:53:25 +11:00
Age Manning
30f51df4cf
Improved RPC timeout handling ( #770 )
...
* Handle slow app level responses for RPC
* Correct errors
* Terminates stream on error
2020-01-08 14:18:06 +11:00
Michael Sproul
f36a5a15d6
Store states efficiently in the hot database ( #746 )
...
* Sparse hot DB and block root tree
* Fix store_tests
* Ensure loads of hot states on boundaries are fast
* Milder error for unaligned finalized blocks
2020-01-08 13:58:01 +11:00
Paul Hauner
26dde26c48
Use Cow for checkpoint cache ( #775 )
2020-01-08 11:09:27 +11:00
pscott
95cc5dd22f
Rename ssz_encode_state.rs to ssz_encode_state_container.rs ( #774 )
2020-01-07 10:33:58 +11:00
Paul Hauner
f04c55075e
Add timeouts to canonical head rwlock ( #759 )
...
* Add TimeoutRwLock to BeaconChain
* Update network crate
* Update rest api
* Fix beacon chain tests
* Fix rest api tests
* Set test back to !debug_assertions
2020-01-06 17:30:37 +11:00
Paul Hauner
b0c8b2b700
Change genesis fork for testnets ( #750 )
...
* Change genesis fork for testnets
* Fix genesis fork in lcli
2020-01-06 17:30:08 +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
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
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
pscott
e9149f4580
Enable bulk signature verification ( #739 )
...
* Change verification strategy
* Update EF tests
2019-12-18 12:22:50 +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
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
Pawan Dhananjay
b9d00ee8b8
Reduced num_nodes in full_mesh gossipsub test ( #718 )
2019-12-12 22:38:38 +11:00
pscott
ed9643b846
Add maximum slot limit when processing blocks ( #668 )
...
* Add maximum slot limit when processing blocks
* Fix clippy warning
* Update comments
* Change MAXIMUM_BLOCK_SLOT_NUMBER to 2^32
* Update graffiti versioning
2019-12-12 17:05:07 +11:00
Michael Sproul
4eba26572b
Store states in the DB before their blocks ( #712 )
...
Partial fix for #692
2019-12-12 12:48:18 +11:00