Sergi Delgado Segura
3270f0adad
net: Favor peers from addrman over fetching seednodes
...
The current behavior of seednode fetching is pretty eager: we do it as the first
step under `ThreadOpenNetworkConnections` even if some peers may be queryable
from our addrman. This poses two potential issues:
- First, if permanently set (e.g. running with seednode in a config file) we'd
be signaling such seed every time we restart our node
- Second, we will be giving the seed node way too much influence over our addrman,
populating the latter even with data from the former even when unnecessary
This changes the behavior to only add seednodes to `m_addr_fetch` if our addrman
is empty, or little by little after we've spent some time trying addresses from
our addrman. Also, seednodes are added to `m_addr_fetch` in random order, to avoid
signaling the same node in case more than one seed is added and we happen to try
them over multiple restarts
2024-07-24 11:13:16 -04:00
..
2024-07-16 16:19:07 -04:00
2024-07-01 12:39:53 -04:00
2024-03-01 13:13:07 -05:00
2024-06-07 13:55:23 -04:00
2024-02-27 18:28:19 +00:00
2024-07-17 16:58:54 +01:00
2024-07-08 11:12:01 +02:00
2024-06-18 18:47:51 +02:00
2024-07-16 10:27:57 +02:00
2023-11-28 12:35:50 -05:00
2024-07-11 19:08:46 +01:00
2024-06-13 13:17:57 +01:00
2023-01-31 18:48:50 +01:00
2024-06-12 14:38:39 +01:00
2024-07-17 18:33:15 +02:00
2024-07-08 11:12:01 +02:00
2024-07-08 11:12:01 +02:00
2024-07-22 13:59:42 +02:00
2024-07-23 13:49:10 -04:00
2024-07-16 16:19:07 -04:00
2024-06-25 15:01:00 +01:00
2024-07-08 11:12:01 +02:00
2024-07-24 09:30:28 +01:00
2024-07-16 22:40:25 +01:00
2024-07-23 14:51:39 +02:00
2024-07-20 12:52:19 -03:00
2024-07-08 11:12:01 +02:00
2023-10-12 11:27:19 +02:00
2023-12-15 15:20:54 +01:00
2024-07-11 19:21:05 +01:00
2024-07-01 12:39:53 -04:00
2023-09-05 10:13:25 +02:00
2023-09-12 12:14:31 -04:00
2023-10-25 22:46:55 +02:00
2024-04-10 17:01:27 +02:00
2024-07-01 10:26:46 -04:00
2024-01-15 16:19:53 -05:00
2023-11-21 17:37:25 +01:00
2024-07-11 19:21:05 +01:00
2023-05-04 20:57:51 +01:00
2023-11-02 14:09:27 -04:00
2024-05-30 08:35:18 -04:00
2024-05-16 10:16:08 -05:00
2022-12-24 23:49:50 +00:00
2024-06-05 13:18:13 +02:00
2024-05-13 12:07:47 +02:00
2023-09-10 16:11:52 -04:00
2023-09-10 16:11:52 -04:00
2024-07-05 09:03:04 +02:00
2024-06-12 17:12:54 -04:00
2024-06-12 17:12:54 -04:00
2024-05-01 08:33:04 +02:00
2024-06-12 17:12:54 -04:00
2024-06-13 11:20:49 +01:00
2024-06-19 22:56:30 +01:00
2024-07-08 11:12:01 +02:00
2024-05-16 10:16:08 -05:00
2023-08-17 18:28:15 +02:00
2022-12-24 23:49:50 +00:00
2024-07-08 11:12:01 +02:00
2024-05-16 10:16:08 -05:00
2023-05-25 19:24:05 +02:00
2023-05-10 10:39:58 +02:00
2023-05-10 10:39:58 +02:00
2024-03-04 19:53:30 -05:00
2023-10-03 10:52:17 +01:00
2024-05-16 10:16:08 -05:00
2024-05-01 08:33:04 +02:00
2024-06-10 13:46:56 +02:00
2024-07-08 11:12:01 +02:00
2023-08-14 17:38:27 -04:00
2024-06-07 13:55:23 -04:00
2023-12-11 18:22:13 +01:00
2024-07-08 21:19:23 +02:00
2024-06-07 13:55:23 -04:00
2024-07-04 22:35:29 +02:00
2023-09-12 12:07:39 +02:00
2023-09-12 12:07:39 +02:00
2023-03-15 16:42:42 +01:00
2023-03-15 16:42:42 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2024-05-16 15:03:13 -04:00
2024-03-27 14:16:37 +00:00
2023-05-20 12:08:13 +02:00
2024-03-11 13:49:37 +01:00
2024-07-08 11:12:01 +02:00
2024-01-05 17:12:38 +01:00
2023-11-16 11:36:22 +10:00
2024-07-01 12:39:53 -04:00
2024-07-08 11:12:01 +02:00
2024-06-27 17:35:08 -04:00
2024-06-26 06:47:30 +03:00
2024-07-11 19:08:46 +01:00
2024-06-26 15:28:26 -04:00
2024-06-12 16:19:50 -03:00
2024-07-16 16:27:24 -04:00
2023-12-04 15:39:15 -04:00
2024-01-16 15:29:18 +01:00
2023-08-14 17:38:27 -04:00
2024-06-03 16:59:43 +02:00
2024-06-14 10:27:03 +00:00
2024-05-16 10:16:08 -05:00
2024-05-16 10:16:08 -05:00
2024-07-17 16:58:54 +01:00
2024-07-16 16:19:07 -04:00
2024-04-12 14:28:34 +02:00
2024-03-04 10:02:26 +00:00
2024-05-06 11:29:14 +01:00
2023-11-20 15:57:50 -03:00
2024-07-01 10:26:46 -04:00
2024-07-15 18:25:59 +05:30
2024-06-18 12:24:48 +00:00
2023-01-28 15:24:13 +00:00
2023-09-13 11:37:45 +01:00
2024-04-07 14:04:45 +01:00
2024-07-08 11:12:01 +02:00
2024-05-16 10:16:08 -05:00
2024-02-28 10:05:56 -03:00
2024-07-16 10:21:41 +01:00
2024-07-08 11:12:01 +02:00
2024-05-20 16:48:19 +00:00
2024-07-08 11:12:01 +02:00
2024-07-24 11:13:16 -04:00
2024-07-24 11:13:16 -04:00
2024-05-16 10:16:08 -05:00
2024-07-01 12:39:53 -04:00
2024-07-18 17:51:16 -04:00
2024-06-14 14:23:50 +02:00
2023-12-06 11:22:42 -05:00
2023-12-02 22:03:08 +01:00
2023-11-20 14:02:27 +01:00
2024-03-21 16:41:16 +01:00
2024-05-03 14:20:44 -03:00
2024-05-03 14:20:44 -03:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2024-07-08 11:12:01 +02:00
2024-02-28 18:03:23 +01:00
2024-05-21 13:59:33 -04:00
2024-05-16 10:16:08 -05:00
2024-07-11 19:08:46 +01:00
2024-05-14 10:24:31 +02:00
2024-05-14 10:24:31 +02:00
2024-07-01 12:39:57 -04:00
2024-07-06 09:06:36 -04:00
2024-07-19 22:01:01 +01:00
2024-07-17 12:22:28 +02:00
2023-01-12 13:42:44 +00:00
2024-02-15 14:43:14 +01:00
2024-02-16 17:12:52 +01:00
2024-07-08 11:12:01 +02:00
2024-06-07 13:55:23 -04:00
2023-12-22 09:58:19 +01:00
2024-04-01 14:37:24 -04:00
2024-07-08 11:12:01 +02:00
2024-05-16 18:16:46 +02:00
2024-07-08 11:12:01 +02:00
2024-07-08 11:12:01 +02:00
2024-07-08 11:12:01 +02:00
2024-05-16 10:16:08 -05:00
2023-08-17 23:58:47 -05:00
2023-09-05 11:37:35 +01:00
2023-08-01 15:27:33 +02:00
2024-07-01 12:39:53 -04:00
2024-07-23 12:21:41 +02:00
2024-07-16 10:21:41 +01:00
2024-07-16 10:21:41 +01:00
2024-07-01 12:39:53 -04:00
2024-07-23 14:51:36 +02:00
2024-07-23 14:51:36 +02:00
2023-11-16 11:36:22 +10:00
2024-07-24 09:30:28 +01:00
2024-07-17 09:12:28 +02:00
2024-07-16 10:01:24 +01:00
2024-07-16 10:01:24 +01:00
2023-01-03 19:31:29 -06:00
2022-12-24 23:49:50 +00:00
2024-07-08 11:12:01 +02:00