This commit is contained in:
jl777
2019-07-07 04:17:57 -11:00
parent 011a4f90ae
commit 6274db79a6
2 changed files with 2 additions and 0 deletions

View File

@@ -255,6 +255,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,"rwtxproof len.%d\n",len);
return(len);
}

View File

@@ -450,6 +450,7 @@ void komodo_nSPVreq(CNode *pfrom,std::vector<uint8_t> request) // received a req
{
response.resize(1 + slen);
response[0] = NSPV_TXPROOFRESP;
fprintf(stderr,"slen.%d\n",slen);
if ( NSPV_rwtxproof(1,&response[1],&P) == slen )
{
pfrom->PushMessage("nSPV",response);