-
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: verify gossip attestation messages in batch (#5896)
* feat: validate gossip attestations same att data in batch * feat: consume bls verifySignatureSetsSameMessage api * chore: metrics to count percent of attestations batched * feat: add minSameMessageSignatureSetsToBatch flag * chore: remove unused metrics * feat: chain.beaconAttestationBatchValidation cli option * fix: create worker with defaultPoolSize - 1 * feat: enforce each queue item 50ms old * chore: switch back to regular Map in IndexedGossipQueueMinSize * fix: network.beaconAttestationBatchValidation flag * fix: useFakeTimer in beforeEach * fix: address attDataBase64 for both linear & indexed queues * refactor: add getBatchHandlers * fix: block event handler in the next event loop * chore: refactor GossipHandlers type * chore: set min and max batch to 32 & 128 * fix: for await in validateGossipAttestationsSameAttData * chore: refactor phase* in batch function to step* * fix: add and use blsPoolSize which is defaultPoolSize - 1 * chore: address PR comments * feat: more metrics for the IndexedGossipQueue
- Loading branch information
Showing
29 changed files
with
1,134 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.