Add the Ability for Prysm To Handle Trusted Peers (#12492)

* add all changes

* add to peers to watch

* add tests

* Update beacon-chain/p2p/peers/peerdata/store_test.go

* radek's review

---------

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
This commit is contained in:
Nishant Das
2023-06-12 22:47:52 +08:00
committed by GitHub
parent 8d01cf2ec1
commit d5057cfb42
7 changed files with 142 additions and 9 deletions

View File

@@ -93,7 +93,7 @@ var (
// StaticPeers specifies a set of peers to connect to explicitly.
StaticPeers = &cli.StringSliceFlag{
Name: "peer",
Usage: "Connect with this peer. This flag may be used multiple times.",
Usage: "Connect with this peer, this flag may be used multiple times. This peer is recognized as a trusted peer.",
}
// BootstrapNode tells the beacon node which bootstrap node to connect to
BootstrapNode = &cli.StringSliceFlag{