From 031455e9b0669fdb1c0e8670d156b443e7f4849a Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 3 Jul 2019 06:37:31 -1100 Subject: [PATCH] Syntax --- src/komodo_nSPV.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index ee400e3c8..b868c3ad3 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -532,15 +532,15 @@ int32_t NSPV_setequihdr(struct NSPV_equihdr *hdr,int32_t height) int32_t NSPV_getntzsproofresp(struct NSPV_ntzsproofresp *ptr,int32_t prevht,int32_t nextht) { int32_t i; - ptr->prevht = prevht; - ptr->nextht = nextht; - ptr->numhdrs = (nextht - prevht + 1); - ptr->hdrs = (struct NSPV_equihdr *)calloc(ptr->numhdrs,sizeof(*ptr->hdrs)); - for (i=0; inumhdrs; i++) + ptr->prevtxidht = prevht; + ptr->nexttxidht = nextht; + ptr->common.numhdrs = (nextht - prevht + 1); + ptr->common.hdrs = (struct NSPV_equihdr *)calloc(ptr->common.numhdrs,sizeof(*ptr->common.hdrs)); + for (i=0; icommon.numhdrs; i++) { - if ( NSPV_setequihdr(&ptr->hdrs[i],prevht+i) < 0 ) + if ( NSPV_setequihdr(&ptr->common.hdrs[i],prevht+i) < 0 ) { - free(ptr->hdrs); + free(ptr->common.hdrs); return(-1); } }