prysm-pulse/beacon-chain/p2p
Victor Farazdagi 095c4d5dd5
Peer status peer scorer (#7480)
* define and enforce minimum scorer interface

* better decoupling of multiple scorers in service

* removes redundant weight

* adds peer_status scorer

* minir re-arrangement

* rely on scorer in peer status service

* gazelle

* updates rpc_status

* fix build

* better interface verifying

* remove unnecessary locks

* mark todo

* simplify service

* remove redundant references

* avoid passing contexts

* remove unused context

* refactor errors to p2p package

* refactor goodbye codes into p2p

* simplify status api

* remove isbad method from peers

* update scoring service

* introduce validation error

* gazelle

* add score

* restore isbad method

* resolve dep cycle

* gazelle

* peer status scorer: test score calculation

* bad responses scorer: bad peer score

* remove redundant type checks

* pass nil config

* add rounding

* test IsBadPeer

* test bad peers list

* more tests

* check validation error on non-existent peer

* max peer slot -> highest peer slot

* remove redundant comment

* combine

* combine

* introduce var

* fix tests

* remove redundant update

* minor fix

* Nishant's suggestion

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-18 15:51:42 +00:00
..
encoder Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
peers Peer status peer scorer (#7480) 2020-11-18 15:51:42 +00:00
testing Clean Up GoodByes (#7790) 2020-11-13 12:58:13 +00:00
types Extract common types from sync (#7843) 2020-11-18 04:17:42 +00:00
addr_factory_test.go Apply testutils assertions: final cleanup (#7003) 2020-08-25 15:23:06 +00:00
addr_factory.go QSP-47 Remove Meaningless Relay Addr Check (#6388) 2020-06-25 09:16:30 +00:00
broadcaster_test.go Release and remove feature flag --enable-att-broadcast-discovery-attempts (#7610) 2020-10-23 01:53:50 +00:00
broadcaster.go Fix attestation broadcast recovery metric (#7629) 2020-10-23 18:41:17 +00:00
BUILD.bazel Add Gossip Scoring For Peers (#7184) 2020-11-12 08:08:07 +00:00
config.go QSP-13 Only Allow Snappy P2P Encoding (#6415) 2020-07-03 11:24:30 +08:00
connection_gater_test.go Clean Up GoodByes (#7790) 2020-11-13 12:58:13 +00:00
connection_gater.go Clean Up GoodByes (#7790) 2020-11-13 12:58:13 +00:00
dial_relay_node_test.go Applies assertion funcs to p2p tests (#6597) 2020-07-14 16:51:39 +00:00
dial_relay_node.go Refactors calls to deprecated libp2p methods (#6554) 2020-07-13 02:28:40 +00:00
discovery_test.go Use t.TempDir() in tests (#7769) 2020-11-10 22:45:17 +00:00
discovery.go Add Backoff For Peer Dials (#7726) 2020-11-05 05:52:49 +00:00
doc.go Fix old markdown links (#4603) 2020-01-21 03:30:35 +00:00
fork_test.go Use t.TempDir() in tests (#7769) 2020-11-10 22:45:17 +00:00
fork.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
gossip_scoring_params.go Add Gossip Scoring For Peers (#7184) 2020-11-12 08:08:07 +00:00
gossip_topic_mappings_test.go Update run time to v0.9.3 (#4154) 2020-01-07 18:47:39 +00:00
gossip_topic_mappings.go Move subnet topics to global vars (#6525) 2020-07-09 17:38:15 +00:00
handshake.go Clean Up GoodByes (#7790) 2020-11-13 12:58:13 +00:00
info.go Align code base to v0.11 (#5127) 2020-04-14 20:27:03 +00:00
interfaces.go Clean Up GoodByes (#7790) 2020-11-13 12:58:13 +00:00
log.go Clean Up P2P Service (#6574) 2020-07-13 04:16:24 +00:00
monitoring.go Wait for subnet peers before broadcasting onto attestation subnet topic (#6893) 2020-08-10 10:27:50 -05:00
options_test.go Use t.TempDir() in tests (#7769) 2020-11-10 22:45:17 +00:00
options.go More feature flag deletions (#7533) 2020-10-14 23:28:49 +00:00
parameter_test.go Fix Seen Cache Interval (#7751) 2020-11-10 05:39:17 +00:00
pubsub_filter_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
pubsub_filter.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
pubsub_test.go Fix Gossip Message ID (#7624) 2020-10-24 03:38:05 +00:00
pubsub.go Add Gossip Scoring For Peers (#7184) 2020-11-12 08:08:07 +00:00
rpc_topic_mappings_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
rpc_topic_mappings.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
sender_test.go Use Custom SSZ for P2P Types (#7436) 2020-10-14 07:55:28 +00:00
sender.go QSP 32: Add Appropriate Stream Deadlines for RPC Requests (#6583) 2020-07-13 19:40:12 +00:00
service_test.go Update PubSub and include topic filter (#7496) 2020-10-16 07:05:40 +00:00
service.go Refactor scoring service (#7841) 2020-11-17 23:28:13 +08:00
subnets_test.go Add Backoff For Peer Dials (#7726) 2020-11-05 05:52:49 +00:00
subnets.go Add Backoff For Peer Dials (#7726) 2020-11-05 05:52:49 +00:00
topics.go Move subnet topics to global vars (#6525) 2020-07-09 17:38:15 +00:00
utils_test.go Moves AssertLogsContains to assertions package (#6985) 2020-08-13 16:22:25 +00:00
utils.go Prevent Usage of Stdlib File/Dir Writing With Static Analysis (#7685) 2020-11-09 14:27:03 -06:00
watch_peers.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00