|
|
@ -472,13 +472,15 @@ int32_t _kmd_bitcoinscan(struct iguana_info *coin) |
|
|
|
{ |
|
|
|
if ( (ptr= kmd_transactionadd(coin,tx,numvouts)) != 0 ) |
|
|
|
{ |
|
|
|
sobj = addresses = 0; |
|
|
|
for (i=0; i<numvouts; i++) |
|
|
|
{ |
|
|
|
vout = jitem(vouts,i); |
|
|
|
if ( (sobj= jobj(vout,"scriptPubKey")) != 0 && (addresses= jarray(&n,sobj,"addresses")) != 0 ) |
|
|
|
{ |
|
|
|
kmd_transactionvout(coin,ptr,i,jdouble(vout,"value")*SATOSHIDEN,type_rmd160,zero,-1); |
|
|
|
} |
|
|
|
} else printf("missing sobj.%p or addresses.%p (%s)\n",sobj,addresses,jprint(vout,0)); |
|
|
|
sobj = addresses = 0; |
|
|
|
} |
|
|
|
for (i=0; i<numvins; i++) |
|
|
|
{ |
|
|
|