[p2p] Update parameters and protocol versions for BTCP chain

This commit is contained in:
jc 2018-04-08 20:57:58 -04:00
parent ff894a8f09
commit 60bc87c6a8
5 changed files with 13 additions and 3078 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1 @@
# List of fixed seed nodes for testnet
# Onion nodes
thfsmmn2jbitcoin.onion
it2pj4f7657g3rhi.onion
nkf5e6b7pl4jfd4a.onion
4zhkir2ofl7orfom.onion
t6xj6wilh4ytvcs7.onion
i6y6ivorwakd7nw3.onion
ubqj4rsu3nqtxmtp.onion

View File

@ -141,7 +141,6 @@ public:
uint256 nNonce = uint256S("000000000000000000000000000000000000000000000000000000000000021d");
genesis = CreateGenesisBlock(1478403829, nNonce, 0x1f07ffff, 4, 0, GenesisSolutions::MAINNET);
std::cout << genesis.ToString() << std::endl;
consensus.hashGenesisBlock = genesis.GetHash();
assert(genesis.hashMerkleRoot == uint256S("0x19612bcf00ea7611d315d7f43554fa983c6e8c30cba17e52c679e0e80abf7d42"));
assert(consensus.hashGenesisBlock == uint256S("0x0007104ccda289427919efc39dc9e4d499804b7bebc22df55f8b834301260602"));

File diff suppressed because it is too large Load Diff

View File

@ -9,37 +9,39 @@
* network protocol versioning
*/
static const int PROTOCOL_VERSION = 70015;
static const int PROTOCOL_VERSION = 180104;
//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;
static const int FORK_PROTO_VERSION = 180003;
static const int REFACTORED_PROTO_VERSION = 180104;
//! In this version, 'getheaders' was introduced.
static const int GETHEADERS_VERSION = 31800;
static const int GETHEADERS_VERSION = FORK_PROTO_VERSION;
//! disconnect from peers older than this proto version
static const int MIN_PEER_PROTO_VERSION = GETHEADERS_VERSION;
static const int MIN_PEER_PROTO_VERSION = FORK_PROTO_VERSION;
//! nTime field added to CAddress, starting with this version;
//! if possible, avoid requesting addresses nodes older than this
static const int CADDR_TIME_VERSION = 31402;
static const int CADDR_TIME_VERSION = FORK_PROTO_VERSION;
//! BIP 0031, pong message, is enabled for all versions AFTER this one
static const int BIP0031_VERSION = 60000;
static const int BIP0031_VERSION = FORK_PROTO_VERSION - 1;
//! "filter*" commands are disabled without NODE_BLOOM after and including this version
static const int NO_BLOOM_VERSION = 70011;
static const int NO_BLOOM_VERSION = REFACTORED_PROTO_VERSION;
//! "sendheaders" command and announcing blocks with headers starts with this version
static const int SENDHEADERS_VERSION = 70012;
static const int SENDHEADERS_VERSION = REFACTORED_PROTO_VERSION;
//! "feefilter" tells peers to filter invs to you by fee starts with this version
static const int FEEFILTER_VERSION = 70013;
static const int FEEFILTER_VERSION = REFACTORED_PROTO_VERSION;
//! short-id-based block download starts with this version
static const int SHORT_IDS_BLOCKS_VERSION = 70014;
static const int SHORT_IDS_BLOCKS_VERSION = REFACTORED_PROTO_VERSION;
//! not banning for invalid compact blocks starts with this version
static const int INVALID_CB_NO_BAN_VERSION = 70015;
static const int INVALID_CB_NO_BAN_VERSION = REFACTORED_PROTO_VERSION;
#endif // BITCOIN_VERSION_H