|
|
@ -607,7 +607,7 @@ UniValue NSPV_txproof(int32_t vout,uint256 txid,int32_t height) |
|
|
|
len += iguana_rwnum(1,&msg[len],sizeof(height),&height); |
|
|
|
len += iguana_rwnum(1,&msg[len],sizeof(vout),&vout); |
|
|
|
len += iguana_rwbignum(1,&msg[len],sizeof(txid),(uint8_t *)&txid); |
|
|
|
//fprintf(stderr,"req txproof %s/v%d at height.%d\n",txid.GetHex().c_str(),vout,height);
|
|
|
|
fprintf(stderr,"req txproof %s/v%d at height.%d\n",txid.GetHex().c_str(),vout,height); |
|
|
|
for (iter=0; iter<3; iter++); |
|
|
|
if ( NSPV_req(0,msg,len,NODE_NSPV,msg[0]>>1) != 0 ) |
|
|
|
{ |
|
|
@ -618,7 +618,7 @@ UniValue NSPV_txproof(int32_t vout,uint256 txid,int32_t height) |
|
|
|
return(NSPV_txproof_json(&NSPV_txproofresult)); |
|
|
|
} |
|
|
|
} else sleep(1); |
|
|
|
//fprintf(stderr,"txproof timeout\n");
|
|
|
|
fprintf(stderr,"txproof timeout\n"); |
|
|
|
memset(&P,0,sizeof(P)); |
|
|
|
return(NSPV_txproof_json(&P)); |
|
|
|
} |
|
|
|