Test
This commit is contained in:
@@ -582,13 +582,15 @@ int32_t NSPV_gettransaction(int32_t skipvalidation,int32_t vout,uint256 txid,int
|
||||
{
|
||||
int32_t offset,retval = 0;
|
||||
NSPV_txproof(vout,txid,height);
|
||||
if ( NSPV_txproofresult.txid != txid || NSPV_txproofresult.unspentvalue <= 0 )
|
||||
if ( NSPV_txproofresult.txid != txid )
|
||||
{
|
||||
fprintf(stderr,"txproof error value %.8f\n",(double)NSPV_txproofresult.unspentvalue/COIN);
|
||||
return(-1);
|
||||
}
|
||||
else if ( NSPV_txextract(tx,NSPV_txproofresult.tx,NSPV_txproofresult.txlen) < 0 || NSPV_txproofresult.txlen <= 0 )
|
||||
retval = -20;
|
||||
else if ( skipvalidation == 0 && NSPV_txproofresult.unspentvalue <= 0 )
|
||||
retval = -21;
|
||||
else if ( skipvalidation == 0 )
|
||||
{
|
||||
NSPV_notarizations(height); // gets the prev and next notarizations
|
||||
|
||||
Reference in New Issue
Block a user