|
|
@ -547,9 +547,9 @@ cJSON *electrum_getchunk(char *symbol,struct electrum_info *ep,cJSON **retjsonp, |
|
|
|
cJSON *LP_transaction_fromdata(struct iguana_info *coin,bits256 txid,uint8_t *serialized,int32_t len) |
|
|
|
{ |
|
|
|
uint8_t *extraspace; cJSON *txobj; char str[65],str2[65]; struct iguana_msgtx msgtx; bits256 checktxid; |
|
|
|
extraspace = calloc(1,1000000); |
|
|
|
extraspace = calloc(1,4000000); |
|
|
|
memset(&msgtx,0,sizeof(msgtx)); |
|
|
|
txobj = bitcoin_data2json(coin->taddr,coin->pubtype,coin->p2shtype,coin->isPoS,coin->height,&checktxid,&msgtx,extraspace,1000000,serialized,len,0,0); |
|
|
|
txobj = bitcoin_data2json(coin->taddr,coin->pubtype,coin->p2shtype,coin->isPoS,coin->height,&checktxid,&msgtx,extraspace,4000000,serialized,len,0,0); |
|
|
|
//printf("TX.(%s) match.%d\n",jprint(txobj,0),bits256_cmp(txid,checktxid));
|
|
|
|
free(extraspace); |
|
|
|
if ( bits256_cmp(txid,checktxid) != 0 ) |
|
|
|