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"));