From fc20386d8d5a5a68f5b5289a84417ee62a133caa Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 7 Jul 2019 21:24:42 -1100 Subject: [PATCH] Syntax --- src/komodo_nSPV_superlite.h | 2 +- src/komodo_nSPV_wallet.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/komodo_nSPV_superlite.h b/src/komodo_nSPV_superlite.h index 4b791880b..c5ac37159 100644 --- a/src/komodo_nSPV_superlite.h +++ b/src/komodo_nSPV_superlite.h @@ -142,7 +142,7 @@ UniValue NSPV_getinfo_json(struct NSPV_inforesp *ptr) result.push_back(Pair("height",(int64_t)ptr->height)); result.push_back(Pair("chaintip",ptr->blockhash.GetHex())); result.push_back(Pair("notarization",NSPV_ntz_json(&ptr->notarization))); - result.push_back(Pair("hdr",NSPV_header_json(&ptr->H))); + result.push_back(Pair("hdr",NSPV_header_json(&ptr->H,ptr->hdrheight))); return(result); } diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index 6bc3c0b4e..1f47a6469 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -286,8 +286,6 @@ UniValue NSPV_spend(char *srcaddr,char *destaddr,int64_t satoshis) // what its a result.push_back(Pair("error","invalid destaddr")); return(result); } - if ( NSPV_inforesult.height == 0 ) - NSPV_getinfo_json(); if ( NSPV_inforesult.height == 0 ) { result.push_back(Pair("result","error"));