lilith: Clean up and implement periodic hosts purging.

The purging is done by attempting connections and removing the host
from the set if lilith is unable to connect and/or perform the handshake.
This commit is contained in:
parazyd
2023-06-26 11:15:24 +02:00
parent ee2cc0e0b2
commit 1699d8e8d6
5 changed files with 359 additions and 333 deletions

View File

@@ -14,7 +14,9 @@ darkfi = {path = "../../", features = ["net", "rpc"]}
# Async
async-std = "1.12.0"
async-trait = "0.1.68"
ctrlc = { version = "3.4.0", features = ["termination"] }
futures = "0.3.28"
signal-hook-async-std = "0.2.2"
signal-hook = "0.3.15"
easy-parallel = "3.3.0"
smol = "1.3.0"