Give Hush mainnet a dedicated minimum protocol version #345
Hush and DragonX do not have the same requirements for which nodes they should talk to because they don't necessarily have consensus changes at the same time. For instance, 3.10.0 was a consensus change for Hush but not DragonX. This commit changes things so that Hush nodes will no longer talk to old nodes that are not consensus compatible but leaves things the same for DragonX mainnet, which has never had a consensus change.
This commit is contained in:
@@ -26,8 +26,13 @@ static const int PROTOCOL_VERSION = 1987426;
|
||||
static const int INIT_PROTO_VERSION = 209;
|
||||
//! In this version, 'getheaders' was introduced.
|
||||
static const int GETHEADERS_VERSION = 31800;
|
||||
//! disconnect from peers older than this proto version
|
||||
|
||||
//! disconnect from peers older than this proto version (HUSH mainnet)
|
||||
static const int MIN_HUSH_PEER_PROTO_VERSION = 1987426;
|
||||
|
||||
//! disconnect from peers older than this proto version (HACs)
|
||||
static const int MIN_PEER_PROTO_VERSION = 1987420;
|
||||
|
||||
//! 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;
|
||||
|
||||
Reference in New Issue
Block a user