ChainSafe / ChainSafe/nodewatch-api
Excessive IP Data Fetching
- Dominant language
- Go
- Stars
- 60
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
## Expected Behavior
Fetching IP information should happen only when needed. Specifically it should occur when a new peer is found that has not been seen before. This could also be optimized further so that it's only fetched when a new IP address is seen.
## Current Behavior
Upon restarting the API we are seeing ~45,000 requests for IP data. It seems that for every peer we are re-fetching the IP data unnecessarily.
## Possible Solution
- Fetch IP data for peers we have not seen before
- (Optionally) Fetch iP data for IPs we have not seen before, perhaps by adding a separate db collection for IP data.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.