Skip to content

Commit

Permalink
Replace consensus values with Dogecoin equivalents
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Ross Nicoll committed Sep 24, 2021
1 parent 2254aac commit 145bdf0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 145bdf0

Please sign in to comment.