try
This commit is contained in:
@@ -80,7 +80,7 @@ static int AppInitRPC(int argc, char* argv[])
|
|||||||
//
|
//
|
||||||
// Parameters
|
// Parameters
|
||||||
//
|
//
|
||||||
ParseParameters(argc, argv);
|
ParseParameters(argc, lolargv);
|
||||||
std:string name;
|
std:string name;
|
||||||
name = GetArg("-ac_name","");
|
name = GetArg("-ac_name","");
|
||||||
if ( !name.empty() )
|
if ( !name.empty() )
|
||||||
|
|||||||
@@ -6556,7 +6556,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//fprintf(stderr,"netmsg: %s\n", strCommand.c_str());
|
fprintf(stderr,"netmsg: %s\n", strCommand.c_str());
|
||||||
|
|
||||||
if (strCommand == "version")
|
if (strCommand == "version")
|
||||||
{
|
{
|
||||||
@@ -6572,12 +6572,14 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
|||||||
CAddress addrMe;
|
CAddress addrMe;
|
||||||
CAddress addrFrom;
|
CAddress addrFrom;
|
||||||
uint64_t nNonce = 1;
|
uint64_t nNonce = 1;
|
||||||
|
fprintf(stderr, "version.%i\n",pfrom->nVersion);
|
||||||
int nVersion; // use temporary for version, don't set version number until validated as connected
|
int nVersion; // use temporary for version, don't set version number until validated as connected
|
||||||
vRecv >> nVersion >> pfrom->nServices >> nTime >> addrMe;
|
vRecv >> nVersion >> pfrom->nServices >> nTime >> addrMe;
|
||||||
if (nVersion == 10300)
|
if (nVersion == 10300)
|
||||||
nVersion = 300;
|
nVersion = 300;
|
||||||
if ( is_STAKED(ASSETCHAINS_SYMBOL) != 0 )
|
if ( is_STAKED(ASSETCHAINS_SYMBOL) != 0 )
|
||||||
{
|
{
|
||||||
|
fprintf(stderr, "Is Staked!\n");
|
||||||
if (pfrom->nVersion < STAKEDMIN_PEER_PROTO_VERSION)
|
if (pfrom->nVersion < STAKEDMIN_PEER_PROTO_VERSION)
|
||||||
{
|
{
|
||||||
// disconnect from peers older than this proto version
|
// disconnect from peers older than this proto version
|
||||||
@@ -6587,8 +6589,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
|||||||
pfrom->fDisconnect = true;
|
pfrom->fDisconnect = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
|
fprintf(stderr, "Is not staked!\n");
|
||||||
if (pfrom->nVersion < MIN_PEER_PROTO_VERSION)
|
if (pfrom->nVersion < MIN_PEER_PROTO_VERSION)
|
||||||
{
|
{
|
||||||
// disconnect from peers older than this proto version
|
// disconnect from peers older than this proto version
|
||||||
|
|||||||
Reference in New Issue
Block a user