Browse Source

jobj

pass-iguana-arg
jl777 7 years ago
parent
commit
b593a827e3
  1. 2
      iguana/exchanges/LP_mpnet.c

2
iguana/exchanges/LP_mpnet.c

@ -144,7 +144,7 @@ cJSON *LP_mpnet_parse(struct iguana_info *coin,bits256 txid)
{ {
if ( (vouts= jarray(&n,txobj,"vout")) != 0 ) if ( (vouts= jarray(&n,txobj,"vout")) != 0 )
{ {
if ( (sobj= jobject(jitem(vouts,n-1),"scriptPubKey")) != 0 && (hexstr= jstr(sobj,"hex")) != 0 && (hlen= strlen(hexstr)) < sizeof(linebuf)*2 ) if ( (sobj= jobj(jitem(vouts,n-1),"scriptPubKey")) != 0 && (hexstr= jstr(sobj,"hex")) != 0 && (hlen= strlen(hexstr)) < sizeof(linebuf)*2 )
{ {
len = (hlen >> 1); len = (hlen >> 1);
decode_hex(linebuf,len,hexstr); decode_hex(linebuf,len,hexstr);

Loading…
Cancel
Save