Test
This commit is contained in:
@@ -305,6 +305,7 @@ int32_t NSPV_rwtxproof(int32_t rwflag,uint8_t *serialized,struct NSPV_txproof *p
|
||||
len += iguana_rwnum(rwflag,&serialized[len],sizeof(ptr->vout),&ptr->vout);
|
||||
len += iguana_rwuint8vec(rwflag,&serialized[len],&ptr->txlen,&ptr->tx);
|
||||
len += iguana_rwuint8vec(rwflag,&serialized[len],&ptr->txprooflen,&ptr->txproof);
|
||||
fprintf(stderr,"len %d\n",len);
|
||||
return(len);
|
||||
}
|
||||
|
||||
|
||||
@@ -706,10 +706,12 @@ void komodo_nSPVreq(CNode *pfrom,std::vector<uint8_t> request) // received a req
|
||||
memset(&P,0,sizeof(P));
|
||||
if ( (slen= NSPV_gettxproof(&P,vout,txid,height)) > 0 )
|
||||
{
|
||||
fprintf(stderr,"slen.%d\n",slen);
|
||||
response.resize(1 + slen);
|
||||
response[0] = NSPV_TXPROOFRESP;
|
||||
if ( NSPV_rwtxproof(1,&response[1],&P) == slen )
|
||||
{
|
||||
fprintf(stderr,"send response\n");
|
||||
pfrom->PushMessage("nSPV",response);
|
||||
pfrom->prevtimes[ind] = timestamp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user