the is better, should be able to add own seeds if this works
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "key_io.h"
|
||||
#include "main.h"
|
||||
#include "crypto/equihash.h"
|
||||
#include "notaries_staked.h"
|
||||
|
||||
#include "util.h"
|
||||
#include "utilstrencodings.h"
|
||||
@@ -201,6 +202,14 @@ public:
|
||||
fMineBlocksOnDemand = false;
|
||||
fTestnetToBeDeprecatedFieldRPC = false;
|
||||
|
||||
// skip DNS seeds for staked chains.
|
||||
if ( is_STAKED(ASSETCHAINS_SYMBOL) != 0 )
|
||||
{
|
||||
fprintf(stderr, "STAKED CHAIN DISABLED ALL SEEDS!\n", );
|
||||
vFixedSeeds.clear();
|
||||
vSeeds.clear();
|
||||
}
|
||||
|
||||
if ( pthread_create((pthread_t *)malloc(sizeof(pthread_t)),NULL,chainparams_commandline,(void *)&consensus) != 0 )
|
||||
{
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include "scheduler.h"
|
||||
#include "ui_interface.h"
|
||||
#include "crypto/common.h"
|
||||
#include "notaries_staked.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <string.h>
|
||||
@@ -1263,9 +1262,6 @@ void ThreadSocketHandler()
|
||||
|
||||
void ThreadDNSAddressSeed()
|
||||
{
|
||||
// skip DNS seeds for staked chains.
|
||||
if ( is_STAKED(ASSETCHAINS_SYMBOL) != 0 )
|
||||
return;
|
||||
// goal: only query DNS seeds if address need is acute
|
||||
if ((addrman.size() > 0) &&
|
||||
(!GetBoolArg("-forcednsseed", false))) {
|
||||
|
||||
Reference in New Issue
Block a user