This commit is contained in:
jl777
2019-07-07 21:24:42 -11:00
parent db687d05d0
commit fc20386d8d
2 changed files with 1 additions and 3 deletions

View File

@@ -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);
}

View File

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