ChainMetadataService will not clear out stale metadata #5037
Labels
A-base_node
Area - The Tari base node executable and libraries
C-bug
Category - fixes a bug, typically associated with an issue.
The service relies on a vec called
peer_chain_metadata
.This vec stores all the received metadata pings and pong replies from nodes.
This vec is never cleared of stale information. A node will only be removed when it's disconnected or banned, if this does not happen, a node will keep and make logical decisions based on an old node's metadata forever.
We need to try and implement this vec as some TTL cache so that old information gets removed automatically.
I encountered the following behaviour on my node
Connectivity Error: ConnectionFailed: Identity protocol failed: IoError: Broken pipe (os error 32)
The text was updated successfully, but these errors were encountered: