Dear Bitcoin Developers,
I am currently working on a project where I am trying to create long term profiles of bitcoin nodes using peer information. For this purpose I need the size of the peer database. The maximum size is 81,920 due to the buckets, but in order to determine a realistic size, I have been running my own Bitcoin node for a few months. However, this now gives me 2 completely different numbers regarding the peer database, which I cannot explain.
The first number comes from my debug.log file, which contains all logs about incoming addresses. The following is one of the latest entries: 2021-11-25T08:57:56Z Added 1 addresses (of 1) from 2001:41d0:a:69a2::1: 3678 tried, 58574 new This entry basically gives me the information that my node currently manages more than 61,000 unique (no duplicates) addresses.
Another way to get the number of peers of my node are the bitcoin-cli commands “addrinfo” and “getnodeaddresses”. However, using these commands I get much less (about 47,000) nodes.
My question now is how this difference can be explained and what the different numbers (i.e. the one from the debug file and the one from the cli commands) tell me about my peer database.
Thanks in advance for your help,
Brian