From b9f914a323712a46669699501ec7d04f47870c27 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 5 Jul 2019 23:29:44 -1100 Subject: [PATCH] Syntax --- src/komodo_nSPV_fullnode.h | 6 +++--- src/komodo_nSPV_superlite.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/komodo_nSPV_fullnode.h b/src/komodo_nSPV_fullnode.h index 49259f13f..af6c5d3f1 100644 --- a/src/komodo_nSPV_fullnode.h +++ b/src/komodo_nSPV_fullnode.h @@ -195,12 +195,12 @@ uint8_t *NSPV_getrawtx(uint256 &hashBlock,uint16_t *txlenp,uint256 txid) return(rawtx); } -int32_t NSPV_sendrawtransaction(struct NSPV_broadcastresp *ptr,uint8_t *tx,int32_t n) +int32_t NSPV_sendrawtransaction(struct NSPV_broadcastresp *ptr,uint8_t *data,int32_t n) { CTransaction tx; std::string rawtx; ptr->retcode = 0; rawtx.resize(n*2+1); - init_hexbytes_noT(rawtx.data(),tx,n); + init_hexbytes_noT((char *)rawtx.data(),data,n); fprintf(stderr,"rawtx.(%s)\n",rawtx.c_str()); if ( DecodeHexTx(tx,rawtx) != 0 ) { @@ -498,7 +498,7 @@ void komodo_nSPVreq(CNode *pfrom,std::vector request) // received a req pfrom->PushMessage("nSPV",response); pfrom->prevtimes[ind] = timestamp; } - NSPV_broadcast_purge(&S); + NSPV_broadcast_purge(&B); } } } diff --git a/src/komodo_nSPV_superlite.h b/src/komodo_nSPV_superlite.h index 482a0f330..3ed2e2f8f 100644 --- a/src/komodo_nSPV_superlite.h +++ b/src/komodo_nSPV_superlite.h @@ -375,7 +375,7 @@ UniValue NSPV_spentinfo(uint256 txid,int32_t vout) UniValue NSPV_broadcast(char *hex) { - uint8_t msg[64],*tx; bits256 _txid; uint256 txid; uint16_t n; int32_t i,len = 0; struct NSPV_broadcastresult B; + uint8_t msg[64],*tx; bits256 _txid; uint256 txid; uint16_t n; int32_t i,len = 0; struct NSPV_broadcastresp B; n = (int32_t)strlen(hex) >> 1; tx = malloc(n); decode_hex(tx,n,hex);