Fix check_deposit banning peers on sync.

This commit is contained in:
blackjok3r
2018-12-18 02:27:29 +08:00
parent 02efca37ae
commit 7cbe71e5e0

View File

@@ -737,7 +737,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block,uint32_t prevtim
if ( height > 1000000 && strangeout != 0 ) if ( height > 1000000 && strangeout != 0 )
return(-1); return(-1);
} }
else if ( height > 814000 ) else if ( height > 814000 && KOMODO_INSYNC != 0 )
{ {
script = (uint8_t *)&block.vtx[0].vout[0].scriptPubKey[0]; script = (uint8_t *)&block.vtx[0].vout[0].scriptPubKey[0];
return(-1 * (komodo_electednotary(&num,script+1,height,0) >= 0) * (height > 1000000)); return(-1 * (komodo_electednotary(&num,script+1,height,0) >= 0) * (height > 1000000));
@@ -1521,4 +1521,3 @@ void komodo_passport_iteration()
printf("READY for %s RPC calls at %u! done PASSPORT %s refid.%d\n",ASSETCHAINS_SYMBOL,(uint32_t)time(NULL),ASSETCHAINS_SYMBOL,refid); printf("READY for %s RPC calls at %u! done PASSPORT %s refid.%d\n",ASSETCHAINS_SYMBOL,(uint32_t)time(NULL),ASSETCHAINS_SYMBOL,refid);
} }
} }