Skip to content

Commit

Permalink
Add BTC testnet4 servers.json file so that peering works on BTC test4
Browse files Browse the repository at this point in the history
Currently only contains 1 entry, blackie.c3-soft.com (which is not yet
up), but this 1 entry will serve as the seed to find all the other
servers, as they may appear.

Note that Core only just recently merged testnet4 chain to master so
there is no real rush to get other servers up right now, but we will be
ready for it on the Fulcrum side as more servers appear.

Core added testnet4 here: bitcoin/bitcoin#29775
  • Loading branch information
cculianu committed Aug 8, 2024
1 parent be56dd2 commit 8211395
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<file>resources/bch/servers_chipnet.json</file>
<file>resources/btc/servers.json</file>
<file>resources/btc/servers_testnet.json</file>
<file>resources/btc/servers_testnet4.json</file>
<file>resources/ltc/servers.json</file>
<file>resources/ltc/servers_testnet.json</file>
</qresource>
Expand Down
8 changes: 8 additions & 0 deletions resources/btc/servers_testnet4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"blackie.c3-soft.com": {
"pruning": "-",
"s": "57010",
"t": "57009",
"version": "1.4"
}
}
2 changes: 1 addition & 1 deletion src/PeerMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void PeerMgr::startup()
else if (net == BTC::Net::TestNet)
parseServersDotJson(pathPrefix + "servers_testnet.json");
else if (net == BTC::Net::TestNet4)
parseServersDotJson(pathPrefix + "servers_testnet4.json"); // BCH only -- will implicitly throw if somehow the coin is BTC (should never happen)
parseServersDotJson(pathPrefix + "servers_testnet4.json"); // BCH & BTC only -- will implicitly throw if somehow the coin is LTC (should never happen)
else if (net == BTC::Net::ScaleNet)
parseServersDotJson(pathPrefix + "servers_scalenet.json"); // BCH only -- will implicitly throw if somehow the coin is BTC (should never happen)
else if (net == BTC::Net::ChipNet)
Expand Down

0 comments on commit 8211395

Please sign in to comment.