Raul Jordan
6dadb80cc4
Move v1alpha1 into Prysm API namespace ( #9245 )
2021-07-21 21:34:07 +00:00
terence tsao
7f0749c398
Clean up shared interface package ( #9172 )
...
* Remove shared interface folder
* Rename file names
* Gazelle
* Move interface to /beacon/p2p/
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-07-13 18:58:43 +00:00
Raul Jordan
5aac06f04e
Move EthereumAPIs Into Prysm ( #8968 )
...
* begin move
* use same import path
* imports
* regen protos
* regen
* no rename
* generate ssz
* gaz
* fmt
* edit build file
* imports
* modify
* remove generated files
* remove protos
* edit imports in prysm
* beacon chain all builds
* edit script
* add generated pbs
* add replace rules
* license for ethereumapis protos
* change visibility
* fmt
* update build files to gaz ignore
* use proper form
* edit imports
* wrap block
* revert scripts
* revert go mod
2021-06-02 18:49:52 -05:00
Nishant Das
91bd477f4f
Add Metadata V2 Object and Interface ( #8962 )
...
* checkpoint changes
* gaz
* add error check
* gaz
* fix tests
* fix tests
* terence's review
* terence's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-06-02 13:44:34 +08:00
Ivan Martinez
aa0fb058c6
ETH2 APIs: Update protos for new ethapis changes ( #8920 )
...
* Update protos for new changes
* Fix
* Fix deps
* Fix build
* Include newer changes to ethapis
* Fix
* Fix import
* Do not return unconnected peers
2021-05-24 20:02:01 -05:00
Nishant Das
20b836d038
Add Initial Support For Gossip Scoring Service ( #8275 )
...
* checkpoint progress
* gaz
* fix
* add it in
* Update beacon-chain/p2p/pubsub.go
* fmt
* reformat imports
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2021-01-19 12:13:08 +00:00
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
Nishant Das
bafc7479b0
Add Backoff For Peer Dials ( #7726 )
...
* add tests
* Update beacon-chain/p2p/peers/status_test.go
* fix conditional
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2020-11-05 05:52:49 +00:00
Victor Farazdagi
9ce64e2428
Refactor peer scorer into peerdata
+ scorers
( #7452 )
...
* updates comment
* manager -> service
* rename receiver
* refacgtor bad_responses
* refactor store
* update status service
* extends data service
* status service test
* refactor block provider scorer
* misc updates
* fix tests
* data -> peerdata
* gazelle
* peerdata/store test
* limit the visibility scope
* Nishant's suggestion
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-07 13:08:51 +00:00