-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Labels
featureNew feature or requestNew feature or request
Description
Is your feature related to a problem?
When path is being constructed for the packet, translation is required from PeerId
to on-chain Address
type.
On several different places also the inverse is needed.
This is currently performed by an implementation of PeerAddressResolver
asynchronous trait (see
Line 22 in dd88764
pub struct DbPeerAddressResolver(pub Arc<RwLock<CoreEthereumDb<CurrentDbShim>>>); |
Describe the feature you'd like
Ideally, this managed via a translation table in memory so the DB does not need to be queried, thus making outgoing and forwarded packet processing significantly faster.
The table should work as LRU cache, causing it to hit the DB backend only once an entry expires.
Refs #5891
robertkiel
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request