add is_staked function

This commit is contained in:
blackjok3r
2018-09-21 17:15:21 +08:00
parent c85b1ace10
commit 90f50a9ee7
5 changed files with 9 additions and 32 deletions

View File

@@ -4,7 +4,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "notaries_staked.h"
#include "sodium.h"
#include "addrman.h"
@@ -5954,7 +5954,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
CAddress addrFrom;
uint64_t nNonce = 1;
vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe;
if ( (strncmp(ASSETCHAINS_SYMBOL, "STKD", 4) == 0) || (strncmp(ASSETCHAINS_SYMBOL, "STAKED", 6) == 0) )
if ( is_STAKED == 1 )
{
if (pfrom->nVersion < STAKEDMIN_PEER_PROTO_VERSION)
{