Commit Graph

3177 Commits

Author SHA1 Message Date
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
03443c3e57 Bump docker rust version (#794)
* Bump docker rust version

* Improve docker ignore
v0.1.1
2020-01-10 16:49:16 +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
Paul Hauner
3afa7b0dab Print validator pubkeys during generation (#791)
* 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

* Print validator pubkeys during generation

* Fix typo

* Re-organise Syncing log

* Add notes about finding the validator pubkey

* Fix double-0x prefix bug

* Fix typo
2020-01-10 15:47:07 +11:00
Paul Hauner
370c658c7c Optimization: reduce BLS decompression (#766)
* Add RwLock-style caching for BLS pubkeys

* Tidy docker ignore

* Remove RwLocks

* Merge in master
2020-01-10 15:32:10 +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
Paul Hauner
efd73230cf Add testnet3 params (#785)
* Add testnet3 params

* Update sydney ENR
2020-01-10 11:47:00 +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
8e1e6838d2 Add individual processing for ef tests (#745)
* Add Individual signature verification for ef tests

* Add clone state to avoid errors in ef tests

* Add state verification for VerifyIndividual in ef tests

* Add Clone derive for errors

* Update comments
2020-01-08 10:24:44 +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
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
Paul Hauner
2dddbed7ce Update notice about testnet being down (#772) 2020-01-06 17:29:44 +11:00
Paul Hauner
212a5a8ffa Update deposit contract in docs (#769) 2020-01-06 15:44:06 +11:00
Paul Hauner
4d0ef41a2c Fix testnet docs (#747)
* Fix testnet docs

* Minor fixes

* More fixes

* Describe http flag

* Tidy

* Revert change

* Address suggestion from Pawan
2020-01-06 14:31:43 +11:00
pscott
5427664cf4 Add log-format option to CLI (#744)
* Add log-format CLI option

* Cargo fmt

* Add log format logic for file logging. Add doc

* Review comment

* Fix compilation errors

* Remove Mutex from logger
2020-01-06 12:26:30 +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