Skip to content

Commit

Permalink
SPV: update testnet seed nodes (#1682)
Browse files Browse the repository at this point in the history
* SPV: update testnet seed nodes

* Break out of loop if shutdown requested

* Replace seed

Co-authored-by: Prasanna Loganathar <[email protected]>
  • Loading branch information
Bushstar and prasannavl authored Jan 4, 2023
1 parent 18cb979 commit 4acdcb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spv/bitcoin/BRChainParams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ static const char *BRMainNetDNSSeeds[] = {
};

static const char *BRTestNetDNSSeeds[] = {
"testnet-seed.breadwallet.com.", "testnet-seed.bitcoin.petertodd.org.", "testnet-seed.bluematt.me.",
"testnet-seed.bitcoin.schildbach.de.", NULL
"testnet-seed.breadwallet.com.", "testnet-seed.bitcoin.jonasschnelli.ch.", "seed.testnet.bitcoin.sprovoost.nl.",
"testnet-seed.bluematt.me.", NULL
};

// blockchain checkpoints - these are also used as starting points for partial chain downloads, so they must be at
Expand Down
4 changes: 4 additions & 0 deletions src/spv/bitcoin/BRPeerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,10 @@ void BRPeerManagerConnect(BRPeerManager *manager)
}

while (array_count(manager->peers) > 0 && array_count(manager->connectedPeers) < manager->maxConnectCount) {
// Break out of loop to allow shutdown.
if (ShutdownRequested()) {
break;
}
size_t i = BRRand((uint32_t)array_count(manager->peers)); // index of random peer
BRPeerCallbackInfo *info;

Expand Down

0 comments on commit 4acdcb0

Please sign in to comment.