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 Nov 14, 2021
1 parent f89ad55 commit fde0659
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 fde0659

Please sign in to comment.