Skip to content

Commit

Permalink
fix proto rules
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoDragonLady committed Mar 5, 2019
1 parent 5ba4bc1 commit 69adcfd
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5468,22 +5468,14 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
int ActiveProtocol()
{

if (chainActive.Tip()->nHeight >= 131282 && chainActive.Tip()->nHeight < 197035) {
return 70813;
} else if (chainActive.Tip()->nHeight >= 197035 && chainActive.Tip()->nHeight < 207500) {
return 70814;
} else if (chainActive.Tip()->nHeight >= 207500 && chainActive.Tip()->nHeight < 286315) {
return 70815;
} else if (chainActive.Tip()->nHeight >= 286315 && chainActive.Tip()->nHeight < 329515) {
return 70816;
} else if (chainActive.Tip()->nHeight >= 329515 && chainActive.Tip()->nHeight < 373865) {
return 70817;
} else if (chainActive.Tip()->nHeight >= 373865) {
return 70818;
if (chainActive.Tip()->nHeight >= 429500 && chainActive.Tip()->nHeight < 439999) {
return 70717;
} else if (chainActive.Tip()->nHeight >= 440000) {
return 70718;
}

return MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT;

}

// requires LOCK(cs_vRecvMsg)
Expand Down

0 comments on commit 69adcfd

Please sign in to comment.