Skip to content

Commit

Permalink
Increase network minimum protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Jul 24, 2019
1 parent b513787 commit 49bb449
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7185,15 +7185,15 @@ static bool ProcessMessage(CNode* pfrom, const string &strCommand, CDataStream&

int ActiveProtocol()
{
#if 0
const CChainParams& chainParams = Params();

if (chainActive.Height() < chainParams.StartDevfeeBlock() - 10) { //Start banning 10 blocks earlier

return MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT;
} else {

return PROTOCOL_VERSION;
}
#endif
return MIN_PROTO_VERSION;
}

// requires LOCK(cs_vRecvMsg)
Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
static const int PROTOCOL_VERSION = 70101;

//! disconnect from peers older than this proto version
static const int MIN_PROTO_VERSION = 69600;
static const int MIN_PROTO_VERSION = 70101;

static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 70100;
//static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 70100;

//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;
Expand Down

0 comments on commit 49bb449

Please sign in to comment.