Syntax
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user