Tweak sleeps
This commit is contained in:
@@ -561,7 +561,7 @@ int32_t NSPV_notarizationextract(int32_t verifyntz,int32_t *ntzheightp,uint256 *
|
|||||||
GetOpReturnData(tx.vout[1].scriptPubKey,opret);
|
GetOpReturnData(tx.vout[1].scriptPubKey,opret);
|
||||||
if ( opret.size() >= 32*2+4 )
|
if ( opret.size() >= 32*2+4 )
|
||||||
{
|
{
|
||||||
sleep(1); // needed to avoid no pnodes error
|
//sleep(1); // needed to avoid no pnodes error
|
||||||
*desttxidp = NSPV_opretextract(ntzheightp,blockhashp,symbol,opret,tx.GetHash());
|
*desttxidp = NSPV_opretextract(ntzheightp,blockhashp,symbol,opret,tx.GetHash());
|
||||||
nTime = NSPV_blocktime(*ntzheightp);
|
nTime = NSPV_blocktime(*ntzheightp);
|
||||||
komodo_notaries(elected,*ntzheightp,nTime);
|
komodo_notaries(elected,*ntzheightp,nTime);
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ int32_t NSPV_validatehdrs(struct NSPV_ntzsproofresp *ptr)
|
|||||||
if ( blockhash != ptr->common.hdrs[i].hashPrevBlock )
|
if ( blockhash != ptr->common.hdrs[i].hashPrevBlock )
|
||||||
return(-i-13);
|
return(-i-13);
|
||||||
}
|
}
|
||||||
|
sleep(1);
|
||||||
if ( NSPV_txextract(tx,ptr->prevntz,ptr->prevtxlen) < 0 )
|
if ( NSPV_txextract(tx,ptr->prevntz,ptr->prevtxlen) < 0 )
|
||||||
return(-8);
|
return(-8);
|
||||||
else if ( tx.GetHash() != ptr->prevtxid )
|
else if ( tx.GetHash() != ptr->prevtxid )
|
||||||
|
|||||||
Reference in New Issue
Block a user