This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Persistent time-based peer disabling #8428
Labels
F8-enhancement 🎊
An additional feature request.
M4-core ⛓
Core client code / Rust.
P5-sometimesoon 🌲
Issue is worth doing soon.
Milestone
Currently we only "ban" peers in memory, when we detect they are on some different forks or different networks.
Every time the node is started though we again make a dozen of useless connections and requests, cause that info is not persisted.
I think it would make sense to have a file similar to
nodes.json
where we store peers that are temporarily banned (for some speciifc amount of time).It would also help with dealing with warp-sync issues, currently you may end up with 25 peers that cannot provide you snapshot data that you are requesting (with
--warp-barrier
) - in such case we just idle and hope new peers will connect to use, or the old ones will get disconnected. The solution would be to temporarily ban current peers (say for 5 minutes), disconnect them and try to discover more.CC @andresilva @ngotchac
@rphmeier any thoughts?
The text was updated successfully, but these errors were encountered: