Page MenuHomePhabricator

Remove network_event_loop instance in close()
ClosedPublic

Authored by PiRK on Nov 3 2020, 10:18.

Details

Reviewers
Fabien
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABC074c6b258a91: Remove network_event_loop instance in close()
Summary

The asyncio.new_event_loop() instance is now removed from the NetworkThread
class during shutdown. This enables a NetworkThread instance to be restarted
after being closed. The current NetworkThread class guards against an existing
new_event_loop during initialization.

This is a backport of Core PR17288 [1/7]
https://github.com/bitcoin/bitcoin/pull/17288/commits/ede8b7608e115364b5bb12e7f39d662145733de6

Test Plan

ninja && ninja check-functional