1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 01:23:03 +01:00

Disable DHT nodeslist fetching temporarily

We don't want to fetch the mainnet nodes list when we're on
the NGC testnet. This should be fixed before the NGC merge
This commit is contained in:
jfreegman 2021-11-08 16:01:52 -05:00
parent 2444b1f79a
commit c136d18fc4
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -42,7 +42,7 @@
extern struct user_settings *user_settings;
/* URL that we get the JSON encoded nodes list from. */
#define NODES_LIST_URL "https://digcoin.network/random/NGC-bootstrap-nodes.json"
#define NODES_LIST_URL 0 // This should be empty until NGC merges with mainnet
#define DEFAULT_NODES_FILENAME "DHTnodes.json"
@ -276,6 +276,11 @@ on_exit:
*/
static int update_DHT_nodeslist(const char *nodes_path)
{
if (NODES_LIST_URL == 0) { // TODO: Remove this when NGC merges with mainnet
fprintf(stderr, "Skipping DHT Nodes list fetching\n");
return 0;
}
if (!nodeslist_needs_update(nodes_path)) {
return 0;
}