Skip to content

Commit

Permalink
Update the full node networking service to latest good practices (#1437)
Browse files Browse the repository at this point in the history
* Remove `process_network_service_events`

* Introduce `WakeUpReason`

* Add `WakeUpReason::EventSendersReady`

* Move network events handling to WakeUpReason system

* Add `WakeUpReason::MessageToConnection`

* Add `WakeUpReason::CanStartConnect`

* Add `WakeUpReason::CanOpenGossip`

* Add `WakeUpReason::CanAssignSlot`

* Clean up disconnect event

* Log when starting to connect

* Wake up if an event is ready

* Log chain names on no address

* Remove the discovery start task

* Use a separate channel from tasks messages

* Remove incoming connections tasks

* Make shutdown more straight forward

* Print reason for slot unassignment
  • Loading branch information
tomaka authored Dec 1, 2023
1 parent 0622f1b commit 5042d52
Show file tree
Hide file tree
Showing 3 changed files with 985 additions and 957 deletions.
Loading

0 comments on commit 5042d52

Please sign in to comment.