mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 09:53:26 +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
2444b1f79a
commit
c136d18fc4
@ -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