FIXED?
This commit is contained in:
20
src/net.cpp
20
src/net.cpp
@@ -1380,13 +1380,19 @@ void ThreadOpenConnections()
|
|||||||
|
|
||||||
// Add seed nodes if DNS seeds are all down (an infrastructure attack?).
|
// Add seed nodes if DNS seeds are all down (an infrastructure attack?).
|
||||||
// if (addrman.size() == 0 && (GetTime() - nStart > 60)) {
|
// if (addrman.size() == 0 && (GetTime() - nStart > 60)) {
|
||||||
if (GetTime() - nStart > 60) {
|
extern int8_t is_STAKED(const char *chain_name);
|
||||||
static bool done = false;
|
extern char ASSETCHAINS_SYMBOL[65];
|
||||||
if (!done) {
|
// skip DNS seeds for staked chains.
|
||||||
//LogPrintf("Adding fixed seed nodes as DNS doesn't seem to be available.\n");
|
if ( is_STAKED(ASSETCHAINS_SYMBOL) == 0 )
|
||||||
LogPrintf("Adding fixed seed nodes.\n");
|
{
|
||||||
addrman.Add(convertSeed6(Params().FixedSeeds()), CNetAddr("127.0.0.1"));
|
if (GetTime() - nStart > 60) {
|
||||||
done = true;
|
static bool done = false;
|
||||||
|
if (!done) {
|
||||||
|
//LogPrintf("Adding fixed seed nodes as DNS doesn't seem to be available.\n");
|
||||||
|
LogPrintf("Adding fixed seed nodes.\n");
|
||||||
|
addrman.Add(convertSeed6(Params().FixedSeeds()), CNetAddr("127.0.0.1"));
|
||||||
|
done = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user