Set max_nodes in ChainEntry

Only add a new node if the current number of connected nodes is below the max
Define "first party networks" to be: Polkadot, Kusama, Westend and Rococo. All other networks are capped to 500 nodes
This commit is contained in:
David Palm
2021-03-25 11:05:34 +01:00
parent 0806595764
commit a6713ea37e
6 changed files with 56 additions and 19 deletions
+2 -1
View File
@@ -23,10 +23,11 @@ parking_lot = "0.11"
reqwest = "0.9.18"
rustc-hash = "1.1.0"
clap = "3.0.0-beta.2"
lazy_static = "1"
[profile.release]
lto = true
panic = "abort"
[patch.crates-io]
actix-web = { git = "https://github.com/maciejhirsz/actix-web", branch = "no-panic-normalize" }
actix-web = { git = "https://github.com/maciejhirsz/actix-web", branch = "no-panic-normalize" }