This commit is contained in:
blackjok3r
2018-09-21 17:21:30 +08:00
parent 0233e249cf
commit c2ec9c5468
3 changed files with 3 additions and 3 deletions

View File

@@ -858,7 +858,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
if ( (((height < 90000 || (signedmask & 1) != 0) && numvalid >= KOMODO_MINRATIFY) || if ( (((height < 90000 || (signedmask & 1) != 0) && numvalid >= KOMODO_MINRATIFY) ||
(numvalid >= KOMODO_MINRATIFY && ASSETCHAINS_SYMBOL[0] != 0) || (numvalid >= KOMODO_MINRATIFY && ASSETCHAINS_SYMBOL[0] != 0) ||
numvalid > (numnotaries/5)) || numvalid > (numnotaries/5)) ||
( (is_STAKED == 1) && (numvalid > STAKED_MIN_SIGS) ) ( (is_STAKED() == 1) && (numvalid > STAKED_MIN_SIGS) )
{ {
if ( ASSETCHAINS_SYMBOL[0] != 0 ) if ( ASSETCHAINS_SYMBOL[0] != 0 )
{ {

View File

@@ -231,7 +231,7 @@ int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestam
{ {
if ( did1 == 0 ) if ( did1 == 0 )
{ {
if (is_STAKED == 1) if (is_STAKED() == 1)
{ {
n1 = num_notaries_STAKED; n1 = num_notaries_STAKED;
for (i=0; i<n1; i++) for (i=0; i<n1; i++)

View File

@@ -5954,7 +5954,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
CAddress addrFrom; CAddress addrFrom;
uint64_t nNonce = 1; uint64_t nNonce = 1;
vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe; vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe;
if ( is_STAKED == 1 ) if ( is_STAKED() == 1 )
{ {
if (pfrom->nVersion < STAKEDMIN_PEER_PROTO_VERSION) if (pfrom->nVersion < STAKEDMIN_PEER_PROTO_VERSION)
{ {