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 |
|