Skip to content
Commit 8bc576f5 authored by André Silva's avatar André Silva Committed by Gav Wood
Browse files

[v1.0] Backport networking fixes (#2278)



* simplification of peerset api (#2123)

* Introduction of PeersetHandle

* integrate PeersetHandle with the rest of the codebase

* fix compilation errors

* more tests for peerset, fixed overwriting bug in add_reserved_peer

* Slots data structure and bugfixes for peerset

* bend to pressure

* updated lru-cache to 0.1.2 and updated linked-hash-map to 0.5.2

* peerset discovered list is now a LinkedHashMap

* fix review suggestions

* split back Peerset and PeersetHandle

* test for Peerset::discovered

* applied review suggestions

* fixes to peerset::incoming

* peerset disconnects are all instantaneous

* instantaneous drop in peerset finished

* Peerset::set_reserved_only can also reconnect nodes

* Peerset scores cache uses lru-cache

* remove redundant function call and comment from Peerset::on_set_reserved_only

* add_peer returns SlotState enum

* apply review suggestions

* is_reserved -> is_connected_and_reserved

* Fix state inconsistency between handler and behaviour (#2220)

* Fix state inconsistency between handler and behaviour

* Fix the error! being in the wrong place

* Apply negative rating on explicit ban (#2247)

* Apply negative rating on explicit ban

* Update core/network/src/service.rs

Co-Authored-By: default avatararkpar <[email protected]>
parent e099d555
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment