Commit Graph

8005 Commits

Author SHA1 Message Date
dapplion
2e0c6c06a1 Yield on getBlockSignatureSets 2022-05-08 22:50:53 +02:00
dapplion
e500ba1497 Default to pool of size 4 2022-05-08 22:50:53 +02:00
dapplion
282d8010e8 Fix perf test range 2022-05-08 22:50:53 +02:00
dapplion
7a8cd3025d Verify block segment in parallel 2022-05-08 22:50:53 +02:00
dapplion
24464117b1 Re-use existing CachedBeaconState from anchorState 2022-05-08 19:34:56 +02:00
dapplion
826b4bc5c0 Basic range sync perf test 2022-05-08 19:14:00 +02:00
g11tech
fe52e439f1 Fix response casing for complaince with beacon-apis (#3980) 2022-05-07 11:53:11 -05:00
Phil Ngo
2d7741c696 add mainnet-shadow-4 configs (#3983) 2022-05-07 13:45:38 +05:30
tuyennhv
d7a3211af1 Add validator option not to submit attestation early (#3944)
* Add validator option not to submit attestation early

* Add earlyAttestationDelayMs option

* Review PR

* Fix sleep unit test

Co-authored-by: dapplion <35266934+dapplion@users.noreply.github.com>
2022-05-06 17:22:22 +02:00
tuyennhv
efdad3fb18 Prune logic when we have too many peers (#3955)
* PeerManager: pruneExcessPeers logic

* peersRequestedToDisconnect metric by reason

* Separate to smaller functions for readability

* Enforce targetSubnetPeers as 6

* Add benchmark test

* Reduce length of pert test name

* Review PR

* Move trueBitIndexes to into prioritize function

* Add heartbeatDuration metric

* Switch peerLongLivedAttnets to histogram

* Fix heartbeatDuration metric name

Co-authored-by: dapplion <35266934+dapplion@users.noreply.github.com>
2022-05-06 17:59:27 +07:00
tuyennhv
81a4b0cd2a Enable proposerBoostEnabled (#3960) 2022-05-06 17:57:20 +07:00
Lion - dapplion
eb8db44f0a Create codeql-analysis.yml (#3975)
* Create codeql-analysis.yml

* removing the location of the passphrase file in the logs.

* Adding error message to the logs. Looking at the code, it should never contain info relateing to location of passphrase file

Co-authored-by: Dadepo Aderemi <dadepo@gmail.com>
2022-05-05 14:33:48 -05:00
Lion - dapplion
e8f60b6a4c Optimize uint (#3977) 2022-05-05 14:33:36 -05:00
dadepo
7d78388e49 Making comparison between local/remote BeaconParam less error prone. (#3973)
* Normalise values when comparing validator's beacon local config with remote beacon config

* Filling missing properties in remote config with spec defaults

* renaming a variable for clarity

* extract value to variable before comparison

* using the normalized value in log statement
2022-05-05 16:45:02 +02:00
tuyennhv
3eeb6e22a8 LightClientServer only import block if its new head (#3967) 2022-05-04 19:05:21 +02:00
tuyennhv
07402596d5 Fix bounded peersToConnect variable (#3957)
* Fix bounded peersToConnect variable

* Fix bounded peersToConnect variable

* Update discover.ts

Co-authored-by: Lion - dapplion <35266934+dapplion@users.noreply.github.com>
2022-05-04 19:00:24 +02:00
dadepo
5758cbe5a9 be more lenient with accepted filename when reading voting keys. fixes #3941 (#3970) 2022-05-04 18:58:58 +02:00
tuyennhv
4295abbd3a Use chain.clock where possible (#3968) 2022-05-04 18:31:13 +02:00
g11tech
2d3571f144 Add geth ttd override flag and update mainnet shadow fork 3 ttd (#3972) 2022-05-04 21:57:58 +05:30
dependabot[bot]
521efb41ab Bump cross-fetch from 3.1.4 to 3.1.5 (#3959)
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/lquixada/cross-fetch/releases)
- [Commits](https://github.com/lquixada/cross-fetch/compare/v3.1.4...v3.1.5)

---
updated-dependencies:
- dependency-name: cross-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-04 17:28:52 +02:00
g11tech
029e7b7106 Snappy frame encode big payloads as chunks as per the standard (#3912)
* Snappy frame encode big payloads as chunks as per standard

* cleanup comments

* moving the chunking upstream

* upgrade to the new snappy steam version supporting stream chunking

* switch to async version to match the chunks

* fixing the uncompress test

* update the package fix

* shift to sync compress version as it is almost 2x faster

* update comment

* lint

* flip async and sync chunks
2022-05-04 17:26:53 +02:00
Phil Ngo
a3cb495170 add mainnet-shadow-3 configs (#3966) 2022-05-03 01:36:53 +05:30
g11tech
2d58a4481f Enable using an engine endpoint for eth1 deposit/merge tracker (#3949)
* Enable using an engine endpoint for eth1 deposit/merge tracker

* update CI merge to run eth tracker on engine

* update the nethermind build target

* unit test

* rearrange jwt secret write files

* fix jwt file availability
2022-05-01 00:56:03 +05:30
tuyennhv
2b9fe2a008 Fix deserializeEnrSubnets (#3956) 2022-04-28 11:33:39 +02:00
Lion - dapplion
3a38e655ae Add validator client dashboard (#3954)
* Add validator client dashboard

* Set "exemplar": false
2022-04-26 21:51:09 +02:00
g11tech
c754818cf6 Add light client finalized update route (#3882)
* Add light client finalized update route

* rename finalized to latest finalized

* make lint and tests work

* adding the finalized event and tracking finalized in light client

* correct message log
2022-04-26 04:55:54 -05:00
dadepo
7284efc245 Updating outdated section of docs and code (#3951) 2022-04-26 04:47:58 -05:00
Lion - dapplion
24652e62a2 Call validatorStore sign in parallel (#3926) 2022-04-25 09:00:31 -05:00
tuyennhv
2a59e70abb Store PartialLightClientUpdate by SyncAggregate period (#3936) 2022-04-25 08:52:44 -05:00
g11tech
e448ece540 Eth1 tracker improvements (#3930) 2022-04-25 08:32:33 -05:00
tuyennhv
21f8ec2cd2 Fix Error: bytes is not iterable (#3938) 2022-04-25 08:28:18 -05:00
tuyennhv
67fb374fb6 Add lightclient cmd (#3937) 2022-04-25 08:25:34 -05:00
g11tech
97f601212a Integrate besu with the merge script along with some general cleanup (#3942)
* besu integration in merge setup script with some cleanup

* update mainnet shadow fork 2 config for besu

* some cleanup for easy management

* cl network cleanup for mac vs linux

* update the besu image target
2022-04-21 18:14:26 +05:30
Phil Ngo
e12ab97078 Update mainnet-shadow-fork-2 configs (#3939)
* Update mainnet-shadow-fork-2 configs

* update filename
2022-04-20 13:45:10 +05:30
Phil Ngo
eef2c86b3d Goerli shadowfork 4 config update (#3928)
* Goerli shadowfork 4 config update

* Update network id to "5" for goerli

* Update nethermind image
2022-04-17 13:02:05 +05:30
tuyennhv
9f0c7a666a Submit unaggregated attestations in one go (#3923)
* Submit unaggregated attestations in one go

* Review PR

Co-authored-by: dapplion <35266934+dapplion@users.noreply.github.com>
2022-04-15 10:51:54 +02:00
tuyennhv
8898b2ad9e HttpClient: log request and response (#3913)
* Http client: log request & response

* Review PR

Co-authored-by: dapplion <35266934+dapplion@users.noreply.github.com>
2022-04-15 08:19:07 +07:00
tuyennhv
540ec108b6 Increase committee size in sim tests (#3921) 2022-04-15 08:17:55 +07:00
g11tech
012e15e002 Update ssz (#3924) 2022-04-14 23:33:41 +05:30
dependabot[bot]
bb7ca8d9ba Bump async from 3.2.0 to 3.2.3 (#3920)
Bumps [async](https://github.com/caolan/async) from 3.2.0 to 3.2.3.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v3.2.0...v3.2.3)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-14 12:22:40 +02:00
tuyennhv
053f76a6cb Ignore attestations voting for the wrong finalized checkpoint (#3916)
* Ignore attestations voting for the wrong finalized checkpoint

* Fix lint
2022-04-13 11:16:05 -05:00
Cayman
283ba5142d Fix broken peerstore migration (#3915) 2022-04-13 10:51:13 -05:00
Lion - dapplion
06a40d36bf Add validator client metrics (#3914)
* Add validator metrics in code

* Update test types

* Wire validator metrics

* Wire validator metrics in cli

* Add HTTP client metrics

* Rename metrics prefix

* Metrics for attester steps

* Metrics for sync committee steps

* Metrics for proposer steps

* Fix vc journey metrics times

* De-duplicate log from vc metrics server

* Add validator target to local metrics

* Fix metrics for vc http client

* PR comments

* Fix option types

* Fix attestationNoCommittee property merging
2022-04-13 10:49:59 -05:00
Lion - dapplion
efa138b409 Fix property merging in publishAttestations attestationNoCommittee (#3919) 2022-04-13 09:56:32 -05:00
Lion - dapplion
1f3bb75147 Split Gossipsub rows into its own dashboard (#3918)
* Add contributing guide for dashboards

* Split debug gossipsub metrics into separate dashboard
2022-04-13 14:58:57 +02:00
Lion - dapplion
5076ea4f3e Do single call to produce attestation (#3917) 2022-04-13 13:14:39 +02:00
tuyennhv
106a05a281 Log attestation's journey published by local validators (#3534)
* Log attestation journey

* Fix lint and log

* New metric: missed attestations vs big inclusion distance

* Correct inclusionDistance in failed attestation log

* Track attestation publish delay second in metric and log

* Remove Math.floor() to calculate metric exactly

* Track seen time at the api side

* Add comments for sent peers bucket values
2022-04-13 17:09:04 +07:00
tuyennhv
a81bf849a2 Handle sleep function with negative value (#3908)
* Handle sleep function with negative value

* Return early if no attestation duty

* Ensure msToSlotFraction never return negative value
2022-04-12 10:06:56 -05:00
Lion - dapplion
50b13070fa Add more API REST metrics (#3899)
* Add more API REST metrics

* Add detailed socket metrics

* Fix typo in duplicated metric name

* Remove server.connections

* Fix typo

* Remove unnecessary metrics
2022-04-12 17:06:28 +02:00
Phil Ngo
8fc2c2e09c Update CODEOWNERS (#3910) 2022-04-12 10:02:34 -05:00