From 2d5a19ef66ce5cbc8e73143995d5f40c4302cd1d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 6 Jul 2019 21:51:18 -1100 Subject: [PATCH] Test non-not validation --- src/komodo_nSPV_wallet.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index ab0007571..d6ef904af 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -31,10 +31,10 @@ int32_t NSPV_validatehdrs(struct NSPV_ntzsproofresp *ptr) return(-3); else if ( NSPV_notarizationextract(&height,&blockhash,&txid,&txidht,&desttxid,tx) < 0 ) return(-4); - else if ( height != ptr->common.nextht ) - return(-5); - else if ( NSPV_doublesha256((uint8_t *)&ptr->common.hdrs[ptr->common.numhdrs-1],sizeof(*ptr->common.hdrs)) != blockhash ) - return(-6); + //else if ( height != ptr->common.nextht ) + // return(-5); + //else if ( NSPV_doublesha256((uint8_t *)&ptr->common.hdrs[ptr->common.numhdrs-1],sizeof(*ptr->common.hdrs)) != blockhash ) + // return(-6); for (i=ptr->common.numhdrs-1; i>0; i--) { if ( NSPV_doublesha256((uint8_t *)&ptr->common.hdrs[i-1],sizeof(*ptr->common.hdrs)) != ptr->common.hdrs[i].hashPrevBlock ) @@ -46,10 +46,10 @@ int32_t NSPV_validatehdrs(struct NSPV_ntzsproofresp *ptr) return(-7); else if ( NSPV_notarizationextract(&height,&blockhash,&txid,&txidht,&desttxid,tx) < 0 ) return(-8); - else if ( height != ptr->common.prevht ) - return(-9); - else if ( NSPV_doublesha256((uint8_t *)&ptr->common.hdrs[0],sizeof(*ptr->common.hdrs)) != blockhash ) - return(-10); + //else if ( height != ptr->common.prevht ) + // return(-9); + //else if ( NSPV_doublesha256((uint8_t *)&ptr->common.hdrs[0],sizeof(*ptr->common.hdrs)) != blockhash ) + // return(-10); return(0); }