This commit is contained in:
blackjok3r
2018-12-06 18:53:05 +08:00
parent 7f19010a7b
commit 29cefb7ef1

View File

@@ -1380,6 +1380,11 @@ 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)) {
extern int8_t is_STAKED(const char *chain_name);
extern char ASSETCHAINS_SYMBOL[65];
// skip DNS seeds for staked chains.
if ( is_STAKED(ASSETCHAINS_SYMBOL) == 0 )
{
if (GetTime() - nStart > 60) { if (GetTime() - nStart > 60) {
static bool done = false; static bool done = false;
if (!done) { if (!done) {
@@ -1389,6 +1394,7 @@ void ThreadOpenConnections()
done = true; done = true;
} }
} }
}
// //
// Choose an address to connect to based on most recently seen // Choose an address to connect to based on most recently seen