mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 02:02:18 +00:00
cec32cb996
* Append Dynamic Addinng Trusted Peer Apis * Append unit tests for Dynamic Addinng Trusted Peer Apis * Update beacon-chain/p2p/peers/peerdata/store.go * Update beacon-chain/p2p/peers/peerdata/store_test.go * Update beacon-chain/p2p/peers/peerdata/store_test.go * Update beacon-chain/p2p/peers/peerdata/store_test.go * Update beacon-chain/p2p/peers/status.go * Update beacon-chain/p2p/peers/status_test.go * Update beacon-chain/p2p/peers/status_test.go * Update beacon-chain/rpc/eth/node/handlers.go * Update beacon-chain/rpc/eth/node/handlers.go * Update beacon-chain/rpc/eth/node/handlers.go * Update beacon-chain/rpc/eth/node/handlers.go * Move trusted peer apis from rpc/eth/v1/node to rpc/prysm/node; move peersToWatch into ensurePeerConnections function; * Update beacon-chain/rpc/prysm/node/server.go * Update beacon-chain/rpc/prysm/node/server.go * fix go lint problem * p2p/watch_peers.go: trusted peer makes AddrInfo structure by itself instead of using MakePeer(). p2p/service.go: add connectWithAllTrustedPeers function, before connectWithPeer, add trusted peer info into peer status. p2p/peers/status.go: trusted peers are not included, when pruning outdated and disconnected peers. * use readlock for GetTrustedPeers and IsTrustedPeers --------- Co-authored-by: simon <sunminghui2@huawei.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: Nishant Das <nishdas93@gmail.com>
50 lines
1.9 KiB
Python
50 lines
1.9 KiB
Python
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"handlers.go",
|
|
"server.go",
|
|
"structs.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/prysm/node",
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
deps = [
|
|
"//beacon-chain/blockchain:go_default_library",
|
|
"//beacon-chain/db:go_default_library",
|
|
"//beacon-chain/execution:go_default_library",
|
|
"//beacon-chain/p2p:go_default_library",
|
|
"//beacon-chain/p2p/peers:go_default_library",
|
|
"//beacon-chain/p2p/peers/peerdata:go_default_library",
|
|
"//beacon-chain/sync:go_default_library",
|
|
"//network:go_default_library",
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
|
"@com_github_libp2p_go_libp2p//core/network:go_default_library",
|
|
"@com_github_libp2p_go_libp2p//core/peer:go_default_library",
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"handlers_test.go",
|
|
"server_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//beacon-chain/p2p:go_default_library",
|
|
"//beacon-chain/p2p/peers:go_default_library",
|
|
"//beacon-chain/p2p/testing:go_default_library",
|
|
"//network:go_default_library",
|
|
"//testing/assert:go_default_library",
|
|
"//testing/require:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//p2p/enode:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//p2p/enr:go_default_library",
|
|
"@com_github_libp2p_go_libp2p//core/network:go_default_library",
|
|
"@com_github_libp2p_go_libp2p//core/peer:go_default_library",
|
|
"@com_github_libp2p_go_libp2p//p2p/host/peerstore/test:go_default_library",
|
|
"@com_github_multiformats_go_multiaddr//:go_default_library",
|
|
],
|
|
)
|