Test
This commit is contained in:
@@ -661,6 +661,7 @@ int32_t NSPV_gettransaction(int32_t skipvalidation,int32_t vout,uint256 txid,int
|
|||||||
proof.resize(NSPV_txproofresult.txprooflen);
|
proof.resize(NSPV_txproofresult.txprooflen);
|
||||||
memcpy(&proof[0],NSPV_txproofresult.txproof,NSPV_txproofresult.txprooflen);
|
memcpy(&proof[0],NSPV_txproofresult.txproof,NSPV_txproofresult.txprooflen);
|
||||||
}
|
}
|
||||||
|
fprintf(stderr,"call NSPV_notarizations\n");
|
||||||
NSPV_notarizations(height); // gets the prev and next notarizations
|
NSPV_notarizations(height); // gets the prev and next notarizations
|
||||||
if ( NSPV_inforesult.notarization.height >= height && (NSPV_ntzsresult.prevntz.height == 0 || NSPV_ntzsresult.prevntz.height >= NSPV_ntzsresult.nextntz.height) )
|
if ( NSPV_inforesult.notarization.height >= height && (NSPV_ntzsresult.prevntz.height == 0 || NSPV_ntzsresult.prevntz.height >= NSPV_ntzsresult.nextntz.height) )
|
||||||
{
|
{
|
||||||
@@ -675,6 +676,7 @@ int32_t NSPV_gettransaction(int32_t skipvalidation,int32_t vout,uint256 txid,int
|
|||||||
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 )
|
||||||
{
|
{
|
||||||
|
fprintf(stderr,"call NSPV_txidhdrsproof\n");
|
||||||
NSPV_txidhdrsproof(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 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user