From 15eb217c46f8294007cdd95f1ef514b1653698fe Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 10 Jul 2019 02:32:13 -1100 Subject: [PATCH] Tweak sleeps --- src/komodo_nSPV.h | 2 +- src/komodo_nSPV_wallet.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index aacc0a583..c8338d365 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -561,7 +561,7 @@ int32_t NSPV_notarizationextract(int32_t verifyntz,int32_t *ntzheightp,uint256 * GetOpReturnData(tx.vout[1].scriptPubKey,opret); 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()); nTime = NSPV_blocktime(*ntzheightp); komodo_notaries(elected,*ntzheightp,nTime); diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index cf409aa61..300d5de22 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -44,6 +44,7 @@ int32_t NSPV_validatehdrs(struct NSPV_ntzsproofresp *ptr) if ( blockhash != ptr->common.hdrs[i].hashPrevBlock ) return(-i-13); } + sleep(1); if ( NSPV_txextract(tx,ptr->prevntz,ptr->prevtxlen) < 0 ) return(-8); else if ( tx.GetHash() != ptr->prevtxid )