prysm-pulse/beacon-chain/p2p/peers
Victor Farazdagi bf59530d93
Adds block provider scorer (#6756)
* prepares peer scorer collection

* decouples scoring service into separate object

* updates references

* renames package

* removes redundant test init

* gazelle

* gofmt

* updates comment

* fix build

* adds block provider scorer

* score rounding factor constant (per Nishant's suggestion)

* updates penalty applying

* updates score block provider tests

* updates scorer tests

* expand test suite

* get rid of penalties + counters for requested/returned blocks

* removes start score

* fixes provider test

* fixes scorer manager tests

* updates comments

* moves roundScore test function

* maxscore tests

* improves test coverage

* Update beacon-chain/p2p/peers/score_block_providers.go

Co-authored-by: Nishant Das <nishdas93@gmail.com>

* renames var to make it less ambigous - per Nishant's suggestion

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2020-08-01 12:20:05 +03:00
..
benchmark_test.go Allocate the appropriate memory for retrieveIndicesFromBitfield (#6507) 2020-07-08 05:47:26 +00:00
BUILD.bazel Adds block provider scorer (#6756) 2020-08-01 12:20:05 +03:00
peers_test.go Adds block provider scorer (#6756) 2020-08-01 12:20:05 +03:00
score_bad_responses_test.go Adds peer scorer manager (#6752) 2020-07-29 09:26:46 +00:00
score_bad_responses.go Adds peer scorer manager (#6752) 2020-07-29 09:26:46 +00:00
score_block_providers_test.go Adds block provider scorer (#6756) 2020-08-01 12:20:05 +03:00
score_block_providers.go Adds block provider scorer (#6756) 2020-08-01 12:20:05 +03:00
scorer_manager_test.go Adds block provider scorer (#6756) 2020-08-01 12:20:05 +03:00
scorer_manager.go Adds block provider scorer (#6756) 2020-08-01 12:20:05 +03:00
status_test.go Adds peer scorer manager (#6752) 2020-07-29 09:26:46 +00:00
status.go Adds peer scorer manager (#6752) 2020-07-29 09:26:46 +00:00
store.go Adds block provider scorer (#6756) 2020-08-01 12:20:05 +03:00