Commit Graph

3344 Commits

Author SHA1 Message Date
Age Manning
e4d9978fb7 Remove println debugging statement 2020-05-11 12:48:00 +10:00
Age Manning
18251439d7 Lighthouse compiles on stable futures 2020-05-10 22:37:24 +10:00
Age Manning
033cca602f Upgrade simulator to stable futures 2020-05-10 22:34:00 +10:00
Pawan Dhananjay
addde163c4 stable futures fixes (#1124)
* Fix eth1 update functions

* Fix genesis and client

* Fix beacon node lib

* Return appropriate runtimes from environment

* Fix test rig

* Refactor eth1 service update
2020-05-10 19:55:06 +10:00
Age Manning
4617db64fa Convert self referential async functions 2020-05-08 16:19:55 +10:00
Age Manning
d54356036b Further updates 2020-05-08 16:11:53 +10:00
Age Manning
c4d5af81df Builder update 2020-05-08 15:06:52 +10:00
Age Manning
167530e3f4 Update notifier to stable futures 2020-05-08 12:40:45 +10:00
Pawan Dhananjay
7fbde447b1 Port rest_api crate to stable futures (#1118)
* Port rest_api lib to stable futures

* Reduce tokio features
2020-05-08 11:51:20 +10:00
Pawan Dhananjay
8e81ea911d Port account_manager to stable futures (#1121)
* Port account_manager to stable futures

* Run async fns in tokio environment
2020-05-08 11:49:36 +10:00
Age Manning
1f2acad0df Network crate update to stable futures 2020-05-07 19:40:46 +10:00
Age Manning
d00fbcefd2 Merge stable futures 2020-05-07 16:23:53 +10:00
Pawan Dhananjay
c99b134e0f Port validator_client to stable futures (#1114)
* Add PH & MS slot clock changes

* Account for genesis time

* Add progress on duties refactor

* Add simple is_aggregator bool to val subscription

* Start work on attestation_verification.rs

* Add progress on ObservedAttestations

* Progress with ObservedAttestations

* Fix tests

* Add observed attestations to the beacon chain

* Add attestation observation to processing code

* Add progress on attestation verification

* Add first draft of ObservedAttesters

* Add more tests

* Add observed attesters to beacon chain

* Add observers to attestation processing

* Add more attestation verification

* Create ObservedAggregators map

* Remove commented-out code

* Add observed aggregators into chain

* Add progress

* Finish adding features to attestation verification

* Ensure beacon chain compiles

* Link attn verification into chain

* Integrate new attn verification in chain

* Remove old attestation processing code

* Start trying to fix beacon_chain tests

* Split adding into pools into two functions

* Add aggregation to harness

* Get test harness working again

* Adjust the number of aggregators for test harness

* Fix edge-case in harness

* Integrate new attn processing in network

* Fix compile bug in validator_client

* Update validator API endpoints

* Fix aggreagation in test harness

* Fix enum thing

* Fix attestation observation bug:

* Patch failing API tests

* Start adding comments to attestation verification

* Remove unused attestation field

* Unify "is block known" logic

* Update comments

* Supress fork choice errors for network processing

* Add todos

* Tidy

* Add gossip attn tests

* Disallow test harness to produce old attns

* Comment out in-progress tests

* Partially address pruning tests

* Fix failing store test

* Add aggregate tests

* Add comments about which spec conditions we check

* Dont re-aggregate

* Split apart test harness attn production

* Fix compile error in network

* Make progress on commented-out test

* Fix skipping attestation test

* Add fork choice verification tests

* Tidy attn tests, remove dead code

* Remove some accidentally added code

* Fix clippy lint

* Rename test file

* Add block tests, add cheap block proposer check

* Rename block testing file

* Add observed_block_producers

* Tidy

* Switch around block signature verification

* Finish block testing

* Remove gossip from signature tests

* First pass of self review

* Fix deviation in spec

* Update test spec tags

* Start moving over to hashset

* Finish moving observed attesters to hashmap

* Move aggregation pool over to hashmap

* Make fc attn borrow again

* Fix rest_api compile error

* Fix missing comments

* Fix monster test

* Uncomment increasing slots test

* Address remaining comments

* Remove unsafe, use cfg test

* Remove cfg test flag

* Fix dodgy comment

* Revert "Update hashmap hashset to stable futures"

This reverts commit d432378a3c.

* Revert "Adds panic test to hashset delay"

This reverts commit 281502396f.

* Ported attestation_service

* Ported duties_service

* Ported fork_service

* More ports

* Port block_service

* Minor fixes

* VC compiles

* Update TODOS

* Borrow self where possible

* Ignore aggregates that are already known.

* Unify aggregator modulo logic

* Fix typo in logs

* Refactor validator subscription logic

* Avoid reproducing selection proof

* Skip HTTP call if no subscriptions

* Rename DutyAndState -> DutyAndProof

* Tidy logs

* Print root as dbg

* Fix compile errors in tests

* Fix compile error in test

* Re-Fix attestation and duties service

* Minor fixes

Co-authored-by: Paul Hauner <paul@paulhauner.com>
2020-05-07 14:59:26 +10:00
Age Manning
3e44d7a258 Merge latest master 2020-05-06 22:12:22 +10:00
Paul Hauner
ad5bd6412a Add attestation gossip pre-verification (#983)
* Add PH & MS slot clock changes

* Account for genesis time

* Add progress on duties refactor

* Add simple is_aggregator bool to val subscription

* Start work on attestation_verification.rs

* Add progress on ObservedAttestations

* Progress with ObservedAttestations

* Fix tests

* Add observed attestations to the beacon chain

* Add attestation observation to processing code

* Add progress on attestation verification

* Add first draft of ObservedAttesters

* Add more tests

* Add observed attesters to beacon chain

* Add observers to attestation processing

* Add more attestation verification

* Create ObservedAggregators map

* Remove commented-out code

* Add observed aggregators into chain

* Add progress

* Finish adding features to attestation verification

* Ensure beacon chain compiles

* Link attn verification into chain

* Integrate new attn verification in chain

* Remove old attestation processing code

* Start trying to fix beacon_chain tests

* Split adding into pools into two functions

* Add aggregation to harness

* Get test harness working again

* Adjust the number of aggregators for test harness

* Fix edge-case in harness

* Integrate new attn processing in network

* Fix compile bug in validator_client

* Update validator API endpoints

* Fix aggreagation in test harness

* Fix enum thing

* Fix attestation observation bug:

* Patch failing API tests

* Start adding comments to attestation verification

* Remove unused attestation field

* Unify "is block known" logic

* Update comments

* Supress fork choice errors for network processing

* Add todos

* Tidy

* Add gossip attn tests

* Disallow test harness to produce old attns

* Comment out in-progress tests

* Partially address pruning tests

* Fix failing store test

* Add aggregate tests

* Add comments about which spec conditions we check

* Dont re-aggregate

* Split apart test harness attn production

* Fix compile error in network

* Make progress on commented-out test

* Fix skipping attestation test

* Add fork choice verification tests

* Tidy attn tests, remove dead code

* Remove some accidentally added code

* Fix clippy lint

* Rename test file

* Add block tests, add cheap block proposer check

* Rename block testing file

* Add observed_block_producers

* Tidy

* Switch around block signature verification

* Finish block testing

* Remove gossip from signature tests

* First pass of self review

* Fix deviation in spec

* Update test spec tags

* Start moving over to hashset

* Finish moving observed attesters to hashmap

* Move aggregation pool over to hashmap

* Make fc attn borrow again

* Fix rest_api compile error

* Fix missing comments

* Fix monster test

* Uncomment increasing slots test

* Address remaining comments

* Remove unsafe, use cfg test

* Remove cfg test flag

* Fix dodgy comment

* Ignore aggregates that are already known.

* Unify aggregator modulo logic

* Fix typo in logs

* Refactor validator subscription logic

* Avoid reproducing selection proof

* Skip HTTP call if no subscriptions

* Rename DutyAndState -> DutyAndProof

* Tidy logs

* Print root as dbg

* Fix compile errors in tests

* Fix compile error in test
2020-05-06 21:42:56 +10:00
Age Manning
26cf06c3dd Correct discovery update 2020-05-06 21:35:41 +10:00
Pawan Dhananjay
702b2c9623 Fix conversion function and add tests (#1113) 2020-05-06 21:25:50 +10:00
Age Manning
c68e678cac Update all crates versions 2020-05-06 21:23:50 +10:00
Age Manning
c6dad814d4 Compiling version of eth2-libp2p 2020-05-06 16:40:39 +10:00
Paul Hauner
1552f9997e Use schlesi as default testnet (#1108)
* Use schlesi as default testnet

* Add schlesi dir to gitignore
2020-05-06 15:24:25 +10:00
Age Manning
c363ffc236 Remove hashmap delay 2020-05-06 14:13:23 +10:00
Age Manning
9599f6adda Correct warning 2020-05-06 14:07:35 +10:00
Age Manning
040beb78f4 Merge latest master 2020-05-06 14:06:54 +10:00
Age Manning
4afcf721b9 Protect against timing underflows (#1111) 2020-05-06 13:55:18 +10:00
Kirk Baird
611a0c7d19 Arbitrary trait for eth2/types (#1040)
* Add the arbitrary type to eth2/types and their deps

Signed-off-by: Kirk Baird <baird.k@outlook.com>

* Wrap arbitrary in a feature flag

Signed-off-by: Kirk Baird <baird.k@outlook.com>

* Fix feature for types

Signed-off-by: Kirk Baird <baird.k@outlook.com>

* Fix comment

Signed-off-by: Kirk Baird <baird.k@outlook.com>

* Patch versioning

Signed-off-by: Kirk Baird <baird.k@outlook.com>

* Allow expanded crate reference for arbitrary 0.4.3

Signed-off-by: Kirk Baird <baird.k@outlook.com>

* Add arbitrary to remaining types

Signed-off-by: Kirk Baird <baird.k@outlook.com>

* use cmp::min

Signed-off-by: Kirk Baird <baird.k@outlook.com>

* Derive Arbitrary trait for ValidatorStatus, TotalBalances and InclusionInfo

* Add CI check for state processing arbitrary faetures

Signed-off-by: Kirk Baird <baird.k@outlook.com>

* Fix indentation

Signed-off-by: Kirk Baird <baird.k@outlook.com>

Co-authored-by: Mehdi Zerouali <mehdi@sigmaprime.io>
2020-05-06 09:12:28 +10:00
Raw Pong Ghmoa
fcccf63d29 beacon/eth1: degrade log to debug level (#1105) 2020-05-06 08:54:37 +10:00
Pawan Dhananjay
c444a47f3c Fix the fallback transport construction (#1102) 2020-05-05 19:35:37 +10:00
Age Manning
1ccf83b574 Network service additions 2020-05-04 18:34:01 +10:00
Age Manning
35838dbfbe Update RPC to master libp2p 2020-05-04 18:08:48 +10:00
Age Manning
a43381e3d5 RPC handler to stable futures 2020-05-04 17:35:41 +10:00
Age Manning
0d4ee680b5 Merge latest master 2020-05-04 15:43:49 +10:00
Justin
353e496bcb Delete macros.rs (#1099)
The `macros.rs` file under `eth2/utils/ssz/src` is (almost) empty. Can it be deleted?
2020-05-04 10:04:28 +10:00
Paul Hauner
6c713d1e5f Add note about building from testnet5 (#1094) 2020-05-04 08:04:24 +10:00
Paul Hauner
ebbc4e3630 Add skip-slots command (#1095) 2020-05-04 08:04:00 +10:00
Paul Hauner
90453181f8 Fix lcli arg typo (#1097) 2020-05-04 08:03:31 +10:00
Pawan Dhananjay
36f213c092 Dns discovery (#1015)
* Add cli flag and parse dns address

* Fail if enr udp port isn't set

* Improve docs and address parsing

* address review comments

* Remove debug statements

* Add requires condition for enr-address

* Return address in error
2020-05-03 23:18:19 +10:00
divma
b4a1a2e483 Better handling of RPC errors and RPC conn with the PeerManager (#1047) 2020-05-03 23:17:12 +10:00
Age Manning
a4034e8ae3 Update behaviour 2020-05-01 23:05:49 +10:00
Age Manning
f3e707c3db Further progress towards porting eth2-libp2p adds caching to discovery 2020-05-01 22:53:33 +10:00
Age Manning
9e6ae448a6 Finished first round of fighting RPC types 2020-05-01 20:05:03 +10:00
Age Manning
08838fca23 Partial eth2-libp2p stable future upgrade 2020-04-30 23:09:48 +10:00
Age Manning
522d0e1201 Updated all crates in eth2-libp2p 2020-04-30 21:31:12 +10:00
Paul Hauner
b6c027b9ec Follow distance fix (#1082)
* Ensure eth1 follow distance is respected

* Add more info! logs for eth1

* Improve builder log

* Fix timestamp
2020-04-30 17:14:57 +10:00
Age Manning
e0723dfc3b Correctly notify delay queues (#1087) 2020-04-30 17:12:26 +10:00
Age Manning
a6a3b1e135 Merge pull request #1088 from pawanjay176/master-sf
Merge master into stable-futures
2020-04-30 16:40:46 +10:00
pawanjay176
655e255f76 Merge branch 'upstream/stable-futures' into master-sf 2020-04-30 12:03:01 +05:30
pawanjay176
2390b013ac Merge branch 'master' into master-sf 2020-04-30 11:53:32 +05:30
Raw Pong Ghmoa
f4ac0422e2 beacon/notifier: display block information for current slot (#1084) 2020-04-30 16:20:54 +10:00
Paul Hauner
8bf0ef8d30 Add more detail to bad hardcoded dir warning (#1069) 2020-04-30 16:19:15 +10:00
Pawan Dhananjay
85baec87f5 Port websockets, timer and notifier to stable futures (#1035)
* Fix lcli

* Port timer to stable futures

* Fix timer

* Port websocket_server to stable futures

* Port notifier to stable futures

* Add TODOS

* Port remote_beacon_node to stable futures
2020-04-30 15:49:05 +10:00