nSPV hardfork change of utxos/txids structures

This commit is contained in:
jl777
2019-07-14 22:46:02 -11:00
parent c5f6fd77a3
commit c0eada0781
3 changed files with 7 additions and 6 deletions

View File

@@ -17,7 +17,7 @@
// todo:
// new p2p messages: getrawmempool and support myIsutxo_spentinmempool and mytxid_inmempool
// change skipcount to int32_t
// myprivkey, scrub all destination buffers
// make req for utxo/txid more sane?
@@ -157,7 +157,7 @@ int32_t NSPV_rwtxidsresp(int32_t rwflag,uint8_t *serialized,struct NSPV_txidsres
if ( ptr->numtxids != 0 )
{
if ( ptr->txids == 0 )
ptr->txids = (struct NSPV_txidresp *)calloc(sizeof(*ptr->txids),ptr->numtxids); // relies on uint16_t being "small" to prevent mem exhaustion
ptr->txids = (struct NSPV_txidresp *)calloc(sizeof(*ptr->txids),ptr->numtxids);
for (i=0; i<ptr->numtxids; i++)
len += NSPV_rwtxidresp(rwflag,&serialized[len],&ptr->txids[i]);
}