forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplifies gossip::Protocol signature verification (#4259)
Gossip packets which do not sigverify can be any bogus value and it does not make sense to add overhead for them just to collect metrics. The number of gossip packets which do not pass sigverify is already captured in the difference of these two metrics: https://github.com/anza-xyz/agave/blob/64435164f/gossip/src/cluster_info.rs#L2329-L2331 https://github.com/anza-xyz/agave/blob/64435164f/gossip/src/cluster_info.rs#L2353-L255 Additionally if any of the CrdsValues in a PullResponse or PushMessage does not sigverify, we can discard the entire packet.
- Loading branch information
1 parent
eda57c9
commit d68b5de
Showing
3 changed files
with
15 additions
and
103 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