diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 0093cd38a..b067a0b5e 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -654,6 +654,7 @@ const char *banned_txids[] = //"6cc1d0495170bc0e11fd3925297623562e529ea1336b66ea61f8a1159041aed2", //"250875424cece9bcd98cb226b09da7671625633d6958589e3a462bad89ad87cc", // missed //"ea8659011de52f4dac42cda12326064b7b5013b8492f88e33159884ca299aa05", // missed + //"ce567928b5490a17244167af161b1d8dd6ff753fef222fe6855d95b2278a35b3", // missed }; int32_t komodo_checkvout(int32_t vout,int32_t k,int32_t indallvouts) diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index 1f404c243..4edad6682 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -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; inumtxids; i++) len += NSPV_rwtxidresp(rwflag,&serialized[len],&ptr->txids[i]); } diff --git a/src/komodo_nSPV_defs.h b/src/komodo_nSPV_defs.h index 597c3bdd0..46a0fc982 100644 --- a/src/komodo_nSPV_defs.h +++ b/src/komodo_nSPV_defs.h @@ -73,8 +73,8 @@ struct NSPV_utxosresp struct NSPV_utxoresp *utxos; char coinaddr[64]; int64_t total,interest; - int32_t nodeheight; - uint16_t numutxos; uint8_t CCflag,skipcount; + int32_t nodeheight,skipcount; + uint16_t numutxos,CCflag; }; struct NSPV_txidresp @@ -88,8 +88,8 @@ struct NSPV_txidsresp { struct NSPV_txidresp *txids; char coinaddr[64]; - int32_t nodeheight; - uint16_t numtxids; uint8_t CCflag,skipcount; + int32_t nodeheight,skipcount; + uint16_t numtxids,CCflag; }; struct NSPV_ntz