Paul Hauner
2856f5122d
Add checksum verification for deposit contract ( #1330 )
2020-07-06 11:56:44 +10:00
Paul Hauner
25cd91ce26
Update deps ( #1322 )
...
* Run cargo update
* Upgrade prometheus
* Update hex
* Upgrade parking-lot
* Upgrade num-bigint
* Upgrade sha2
* Update dockerfile Rust version
* Run cargo update
2020-07-06 11:55:56 +10:00
Adam Szkoda
c7f47af9fb
Harden the freezing procedure against failures ( #1323 )
...
* Enable logging in tests
* Migrate states to the freezer atomically
2020-07-03 09:47:31 +10:00
realbigsean
9dab928572
swap out rust-crypto for RustCrypto libraries for key management ( #1270 )
...
* swap out rust-crypto for RustCrypto libraries for key management
* change scrypt params unrwap to expect
* delete eth2 key derivation path file, fix error handling in eth2 keystore, pr updates
2020-07-01 18:01:03 +10:00
Adam Szkoda
536728b975
Write new blocks and states to the database atomically ( #1285 )
...
* Mostly atomic put_state()
* Reduce number of vec allocations
* Make crucial db operations atomic
* Save restore points
* Remove StateBatch
* Merge two HotColdDB impls
* Further reduce allocations
* Review feedback
* Silence clippy warning
2020-07-01 12:45:57 +10:00
Paul Hauner
ac89bb190a
Fix invalid attestation verification condition ( #1321 )
...
* Fix bug with attestation target
* Change comment wording
2020-07-01 12:45:34 +10:00
Pawan Dhananjay
314c077870
Fix altona deposit contract address ( #1317 )
2020-06-30 08:44:55 +10:00
Akihito Nakano
a7a79ce4b7
Fix a retry limit condition ( #1306 )
2020-06-29 21:16:12 +10:00
Paul Hauner
916a133043
Loose VC lockfile and slashing protection registers ( #1314 )
2020-06-29 21:04:07 +10:00
Pawan Dhananjay
d4dd9fae07
Fix BlocksByRootRequest min/max bounds calculation ( #1312 )
2020-06-29 21:03:14 +10:00
Age Manning
2ccb9f48da
Temporary noise fix ( #1311 )
...
* Add workaround to noise and add back secio fallback
* Hardcoded size hack
* prioritise secio
2020-06-29 21:02:34 +10:00
Age Manning
821f91ec75
Temporary noise fix ( #1311 )
...
* Add workaround to noise and add back secio fallback
* Hardcoded size hack
* prioritise secio
2020-06-29 20:44:46 +10:00
Age Manning
fc0b8adcd7
Temporary noise fix ( #1311 )
...
* Add workaround to noise and add back secio fallback
* Hardcoded size hack
* prioritise secio
2020-06-29 20:25:42 +10:00
ethDreamer
721323f045
get_active_validator_indices() now has bound check ( #1300 )
2020-06-29 18:21:51 +10:00
Paul Hauner
163fda2c26
Add more Altona boot ENR ( #1310 )
...
* Add other client boot enr
* Include lighthouse boot nodes
2020-06-29 16:51:26 +10:00
Paul Hauner
1e671a61d6
Merge pull request #1308 from ethDreamer/eth1_fix
...
Fixed 1 line bug
2020-06-29 12:30:51 +10:00
Mark Mackey
d90bd648d8
Fixed 1 line bug
2020-06-28 21:12:03 -04:00
Paul Hauner
9f6ee212ff
Merge pull request #1294 from gakonst/fix/self-instead-of-service
...
fix(eth1/service): use self instead of Service
2020-06-29 10:18:36 +10:00
Age Manning
9fc290a344
Add waker to attestation service ( #1305 )
...
* Add waker to attestation service
* Formatting
2020-06-28 22:29:27 +10:00
Paul Hauner
95320f8ab0
Merge pull request #1227 from sigp/spec-v0.12
...
Update to spec v0.12
2020-06-28 20:03:49 +10:00
Paul Hauner
66f183be02
Update docs for Altona ( #1304 )
2020-06-28 16:04:03 +10:00
Paul Hauner
6e7d5c6a7c
Add metrics for validator subscriptions ( #1302 )
2020-06-28 10:47:03 +10:00
Paul Hauner
3953204727
Update to latest testnet dir ( #1303 )
2020-06-28 10:46:49 +10:00
Paul Hauner
38b9bf98ac
Update testnet-dir ( #1301 )
2020-06-26 15:05:49 +10:00
Michael Sproul
7688b5f1dd
Merge remote-tracking branch 'origin/master' into spec-v0.12
2020-06-26 12:57:56 +10:00
Paul Hauner
e0e41fc8e5
Cache deposit signature verification ( #1298 )
...
* Bake in Altona testnet (without genesis state)
* Add sig verification, without optimization
* Start integration with genesis service
* Update config.yml
* Fix eth2_testnet_config test
* Stop using default spec in genesis
* Fix lcli compile error
* Update min genesis time
* Fix typo
2020-06-26 11:43:06 +10:00
Paul Hauner
e3d9832fee
Load validator keys earlier ( #1299 )
2020-06-26 11:10:52 +10:00
Paul Hauner
69e15af0b2
Bake in Altona (without genesis state) ( #1295 )
...
* Bake in Altona testnet (without genesis state)
* Update config.yml
* Fix eth2_testnet_config test
* Update min genesis time
2020-06-26 10:54:57 +10:00
pscott
02174e21d8
Fix clippy's performance lints ( #1286 )
...
* Fix clippy perf lints
* Cargo fmt
* Add and to lint rule in Makefile
* Fix some leftover clippy lints
2020-06-26 00:04:08 +10:00
Paul Hauner
825aca0ef3
Use hash instead of tree hash for is_aggregator ( #1296 )
2020-06-25 16:49:53 +10:00
Georgios Konstantopoulos
4ddfc032e2
test(eth1/service): make tests use references
2020-06-25 08:57:26 +03:00
Paul Hauner
b3c01bf09d
LevelDB CMake hotfix ( #1290 )
...
Co-authored-by: Michael Sproul <michael@sigmaprime.io>
2020-06-25 10:52:16 +10:00
Georgios Konstantopoulos
81a89fb773
fix(eth1/service): use self instead of Service
2020-06-25 00:50:16 +03:00
divma
259502829e
fix wrong draining of queued requests on handler shutdown ( #1288 )
2020-06-24 17:44:28 +10:00
Age Manning
da6ab85e99
Optional Discovery ( #1280 )
...
* Remove beacon-chain config file
* Makes discovery optional
* Remove unused dep
2020-06-23 13:45:40 +10:00
Age Manning
ea76faeeee
Remove beacon-chain config file ( #1279 )
...
* Remove beacon-chain config file
* Remove unused dep
2020-06-23 13:45:27 +10:00
Michael Sproul
920bfdaade
LevelDB CMake hotfix
2020-06-23 12:23:29 +10:00
Paul Hauner
6d507ef863
Replace unreachable expect with tidier solution ( #1278 )
2020-06-23 12:08:52 +10:00
Paul Hauner
07a091ad95
Remove noise test
2020-06-22 08:58:48 +10:00
Paul Hauner
decea48c78
Merge branch 'master' into spec-v0.12
2020-06-21 10:33:02 +10:00
Age Manning
710409c2ba
Userland clean up ( #1277 )
...
* Improve logging, remove unused CLI and move discovery
* Correct tests
* Handle flag correctly
2020-06-20 09:34:28 +10:00
Age Manning
f3d05c15d1
Lighthouse bootnode ( #1265 )
...
* Initial bootnode structure
* Add boot_node subcommand
* Add bootnode subcommand
* fmt corrections
* Extend help message
* Move boot_node crate
* Update discv5 dep
* Improve logging and boot-node logging
Co-authored-by: Paul Hauner <paul@paulhauner.com>
2020-06-19 16:30:07 +10:00
Age Manning
f3380c00b8
Discovery metrics ( #1276 )
...
* Silky smooth squash
* Add discovery metrics
* Fix gauge metric, increase discv5 sessions
* Formatting
2020-06-19 15:36:03 +10:00
Age Manning
e379ad0f4e
Silky smooth discovery ( #1274 )
...
* Initial structural re-write
* Improving discovery update and correcting attestation service logic
* Rework discovery.mod
* Handling lifetimes of query futures
* Discovery update first draft
* format fixes
* Stabalise discv5 update
* Formatting corrections
* Limit FindPeers queries and bug correction
* Update to stable release discv5
* Remove unnecessary pin
* formatting
2020-06-19 14:13:23 +10:00
Michael Sproul
305724770d
Bump all spec tags to v0.12.1 ( #1275 )
2020-06-19 11:18:27 +10:00
Michael Sproul
9450a0f30d
Merge remote-tracking branch 'origin/master' into spec-v0.12
2020-06-18 21:59:59 +10:00
Michael Sproul
bcb6afa0aa
Process exits and slashings off the network ( #1253 )
...
* Process exits and slashings off the network
* Fix rest_api tests
* Add op verification tests
* Add tests for pruning of slashings in the op pool
* Address Paul's review comments
2020-06-18 21:06:34 +10:00
Pawan Dhananjay
3199b1a6f2
Use all attestation subnets ( #1257 )
...
* Update `milagro_bls` to new release (#1183 )
* Update milagro_bls to new release
Signed-off-by: Kirk Baird <baird.k@outlook.com>
* Tidy up fake cryptos
Signed-off-by: Kirk Baird <baird.k@outlook.com>
* move SecretHash to bls and put plaintext back
Signed-off-by: Kirk Baird <baird.k@outlook.com>
* Update v0.12.0 to v0.12.1
* Add compute_subnet_for_attestation
* Replace CommitteeIndex topic with Attestation
* Fix warnings
* Fix attestation service tests
* fmt
* Appease clippy
* return error from validator_subscriptions
* move state out of loop
* Fix early break on error
* Get state from slot clock
* Fix beacon state in attestation tests
* Add failing test for lookahead > 1
* Minor change
* Address some review comments
* Add subnet verification to beacon chain
* Move subnet verification to processor
* Pass committee_count_at_slot to ValidatorDuty and ValidatorSubscription
* Pass subnet id for publishing attestations
* Fix attestation service tests
* Fix more tests
* Fix fork choice test
* Remove unused code
* Remove more unused and expensive code
Co-authored-by: Kirk Baird <baird.k@outlook.com>
Co-authored-by: Michael Sproul <michael@sigmaprime.io>
Co-authored-by: Age Manning <Age@AgeManning.com>
Co-authored-by: Paul Hauner <paul@paulhauner.com>
2020-06-18 19:11:03 +10:00
pscott
06a72614cb
Make all features explicit ( #1251 )
...
* Make all features explicit
* Remove default feature and add missing newline to cargo.toml
* Fix compilation for --feature libp2p-websocket
Signed-off-by: pscott <scottpiriou@gmail.com>
* Remove 'with-arbitrary'
2020-06-18 17:42:42 +10:00
divma
065251b701
Add DC/Shutdown capabilities to the behaviour handler ( #1233 )
...
* Remove ban event from the PM
* Fix dispatching of responses to peer's requests
* Disconnection logic
2020-06-18 11:53:08 +10:00