From 145bdf0ee32d415f5b363a70596143d49b077ce9 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Sat, 11 May 2019 22:42:51 +0000 Subject: [PATCH] Replace consensus values with Dogecoin equivalents * Replace chain parameters with Dogecoin values * Update maximum coins to match Dogecoin * Disable version 2 block requirement * Update coinbase maturity to match Dogecoin * Disable SEGWIT bit in protocol announcement. --- src/protocol.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/protocol.cpp b/src/protocol.cpp index 55261984c6d..6dac3924b2c 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -136,9 +136,13 @@ bool CMessageHeader::IsCommandValid() const ServiceFlags GetDesirableServiceFlags(ServiceFlags services) { if ((services & NODE_NETWORK_LIMITED) && g_initial_block_download_completed) { - return ServiceFlags(NODE_NETWORK_LIMITED | NODE_WITNESS); + // Dogecoin: Disable segwit + // return ServiceFlags(NODE_NETWORK_LIMITED | NODE_WITNESS); + return ServiceFlags(NODE_NETWORK_LIMITED); } - return ServiceFlags(NODE_NETWORK | NODE_WITNESS); + // Dogecoin: Disable segwit + // return ServiceFlags(NODE_NETWORK | NODE_WITNESS); + return ServiceFlags(NODE_NETWORK); } void SetServiceFlagsIBDCache(bool state) {