Syntax
This commit is contained in:
@@ -35,7 +35,7 @@ int32_t NSPV_validatehdrs(struct NSPV_ntzsproofresp *ptr)
|
|||||||
return(-5);
|
return(-5);
|
||||||
else if ( NSPV_hdrhash(&ptr->common.hdrs[ptr->common.numhdrs-1]) != blockhash )
|
else if ( NSPV_hdrhash(&ptr->common.hdrs[ptr->common.numhdrs-1]) != blockhash )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"hdr.%s vs blockhash.%s\n",NSPV_hdrhash(&ptr->common.hdrs[ptr->common.numhdrs-1]).GetHex().c_str(),blockhash.GetHex().c_str());
|
//fprintf(stderr,"hdr.%s vs blockhash.%s\n",NSPV_hdrhash(&ptr->common.hdrs[ptr->common.numhdrs-1]).GetHex().c_str(),blockhash.GetHex().c_str());
|
||||||
return(-6);
|
return(-6);
|
||||||
}
|
}
|
||||||
for (i=ptr->common.numhdrs-1; i>0; i--)
|
for (i=ptr->common.numhdrs-1; i>0; i--)
|
||||||
@@ -81,7 +81,7 @@ int32_t NSPV_gettransaction(int32_t vout,uint256 txid,int32_t height,CTransactio
|
|||||||
offset = (height - NSPV_ntzsresult.prevntz.height);
|
offset = (height - NSPV_ntzsresult.prevntz.height);
|
||||||
if ( offset >= 0 && height <= NSPV_ntzsresult.nextntz.height )
|
if ( offset >= 0 && height <= NSPV_ntzsresult.nextntz.height )
|
||||||
{
|
{
|
||||||
NSPV_hdrsproof(NSPV_ntzsresult.prevntz.txid,NSPV_ntzsresult.nextntz.txid);
|
NSPV_txidhdrsproof(NSPV_ntzsresult.prevntz.txid,NSPV_ntzsresult.nextntz.txid);
|
||||||
if ( (retval= NSPV_validatehdrs(&NSPV_ntzsproofresult)) == 0 )
|
if ( (retval= NSPV_validatehdrs(&NSPV_ntzsproofresult)) == 0 )
|
||||||
{
|
{
|
||||||
std::vector<uint256> txids; std::vector<uint8_t> proof; uint256 proofroot;
|
std::vector<uint256> txids; std::vector<uint8_t> proof; uint256 proofroot;
|
||||||
|
|||||||
Reference in New Issue
Block a user