Changeset View
Changeset View
Standalone View
Standalone View
src/chainparamsseeds.cpp
- This file was moved from src/chainparamsseeds.h.
#ifndef BITCOIN_CHAINPARAMSSEEDS_H | #include <chainparams.h> | ||||
#define BITCOIN_CHAINPARAMSSEEDS_H | #include <util/strencodings.h> | ||||
#include <tinyformat.h> | |||||
/** | /** | ||||
* List of fixed seed nodes for the bitcoin network | * List of fixed seed nodes for the bitcoin network | ||||
* @generated by contrib/seeds/generate-seeds.py | * @generated by contrib/seeds/generate-seeds.py | ||||
* | * | ||||
* Each line contains a 16-byte IPv6 address and a port. | * Each line contains a 16-byte IPv6 address and a port. | ||||
* IPv4 as well as onion addresses are wrapped inside an IPv6 address accordingly. | * IPv4 as well as onion addresses are wrapped inside an IPv6 address accordingly. | ||||
*/ | */ | ||||
static SeedSpec6 pnSeed6_main[] = { | static SeedSpec6 pnSeed6_main[] = { | ||||
▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | static SeedSpec6 pnSeed6_test[] = { | ||||
{{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xc2,0x0e,0xf7,0x83}, 18333}, | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xc2,0x0e,0xf7,0x83}, 18333}, | ||||
{{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xc3,0x9a,0xb1,0x31}, 18333}, | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xc3,0x9a,0xb1,0x31}, 18333}, | ||||
{{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xd5,0x88,0x4c,0xcf}, 18333}, | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xd5,0x88,0x4c,0xcf}, 18333}, | ||||
{{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xd9,0x17,0x0e,0x85}, 18333}, | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xd9,0x17,0x0e,0x85}, 18333}, | ||||
{{0x20,0x01,0x41,0xd0,0x03,0x03,0x87,0xb9,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, 18443}, | {{0x20,0x01,0x41,0xd0,0x03,0x03,0x87,0xb9,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, 18443}, | ||||
{{0x20,0x01,0x0b,0xc8,0x18,0x28,0x13,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01}, 18433}, | {{0x20,0x01,0x0b,0xc8,0x18,0x28,0x13,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01}, 18433}, | ||||
{{0x26,0x01,0x06,0x02,0x8d,0x80,0x0b,0x63,0xdc,0x6d,0x61,0xff,0xfe,0x9f,0x7f,0x29}, 18333} | {{0x26,0x01,0x06,0x02,0x8d,0x80,0x0b,0x63,0xdc,0x6d,0x61,0xff,0xfe,0x9f,0x7f,0x29}, 18333} | ||||
}; | }; | ||||
#endif // BITCOIN_CHAINPARAMSSEEDS_H | std::vector<SeedSpec6> FixedSeedsList(const std::string &chain) { | ||||
if (chain == CBaseChainParams::MAIN) { | |||||
return std::vector<SeedSpec6>( | |||||
pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main)); | |||||
} | |||||
if (chain == CBaseChainParams::TESTNET) { | |||||
return std::vector<SeedSpec6>( | |||||
pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test)); | |||||
} | |||||
throw std::runtime_error( | |||||
strprintf("%s: Unknown or unsupported chain %s.", __func__, chain)); | |||||
} | |||||
deadalnix: There is no reason to change this file in any way, except to move it and change scope guard… |
There is no reason to change this file in any way, except to move it and change scope guard accordingly. These addition are not auto generated anyways.