mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-25 15:53: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:
parent
535a8402d6
commit
0212391d7d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user