From 1c313a4adb594e94864a38fbca529b9e658491cd Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 4 Jul 2019 21:44:17 -1100 Subject: [PATCH] Test --- src/komodo_nSPV.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index be755fa79..64d09d2f2 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -358,7 +358,7 @@ uint256 NSPV_getnotarization_txid(int32_t *ntzheightp,int32_t height) uint256 txid; Notarisation nota; char *symbol = (ASSETCHAINS_SYMBOL[0] == 0) ? (char *)"KMD" : ASSETCHAINS_SYMBOL; memset(&txid,0,sizeof(txid)); *ntzheightp = 0; - int32_t matchedHeight = ScanNotarisationsDB2(height+1,symbol,1440,nota); + int32_t matchedHeight = ScanNotarisationsDB2(height,symbol,1440,nota); if ( matchedHeight != 0 ) { *ntzheightp = matchedHeight; @@ -370,8 +370,11 @@ uint256 NSPV_getnotarization_txid(int32_t *ntzheightp,int32_t height) uint256 NSPV_extract_desttxid(char *symbol,std::vector opret) { uint256 desttxid; int32_t i; + for (i=0; i