From 6db0b511b9c1c738279583c34bdf4d7b9f14fdd1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 6 Jul 2019 03:05:04 -1100 Subject: [PATCH] Syntax --- src/komodo_nSPV.h | 2 +- src/komodo_nSPV_wallet.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index 56ec85488..1df9aedf4 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -365,7 +365,7 @@ void NSPV_broadcast_purge(struct NSPV_broadcastresp *ptr) uint256 NSPV_doublesha256(uint8_t *data,int32_t datalen) { - bits256 _hash; uint256 hash; + bits256 _hash; uint256 hash; int32_t i; _hash = bits256_doublesha256(0,data,datalen); for (i=0; i<32; i++) ((uint8_t *)&hash)[i] = _hash.bytes[31 - i]; diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index d53d0c8a1..d97821fb1 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -40,12 +40,12 @@ struct NSPV_ntzsproofresp uint8_t *prevntz,*nextntz; };*/ -int32_t NSPV_validatehdrs(struct NSPV_ntzsproofresult *ptr) +int32_t NSPV_validatehdrs(struct NSPV_ntzsproofresp *ptr) { int32_t i; // verify nextntz is valid notarization // validate blockhash of lasthdr with nextntz value, and height - for (i=numhdrs-1; i>0; i--) + for (i=ptr->common.numhdrs-1; i>0; i--) { // make sure the hash of i-1 matches the prevBlockhash of i }