|
|
@ -912,13 +912,12 @@ void verusblocks(struct iguana_info *coin) |
|
|
|
memset(firstaddr,0,sizeof(firstaddr)); |
|
|
|
if ( (txobj= LP_gettx("verus",coin->symbol,txid,0)) != 0 ) |
|
|
|
{ |
|
|
|
printf("TX.(%s)\n",jprint(txobj,0)); |
|
|
|
//printf("TX.(%s)\n",jprint(txobj,0));
|
|
|
|
if ( (vouts= jarray(&m,txobj,"vout")) != 0 ) |
|
|
|
{ |
|
|
|
if ( (vout= jitem(vouts,0)) != 0 ) |
|
|
|
{ |
|
|
|
value = jdouble(vout,"value"); |
|
|
|
addr0 = jstr(vout,"address"); |
|
|
|
hexstr = 0; |
|
|
|
if ( m == 2 && (vout1= jitem(vouts,1)) != 0 ) |
|
|
|
{ |
|
|
@ -932,6 +931,7 @@ void verusblocks(struct iguana_info *coin) |
|
|
|
decode_hex(script,44,hexstr); |
|
|
|
locked = ((int32_t)script[3] << 16) + ((int32_t)script[4] << 8) + script[5]; |
|
|
|
bitcoin_address(coin->symbol,firstaddr,coin->taddr,coin->pubtype,&script[10],33); |
|
|
|
addr0 = firstaddr; |
|
|
|
} else printf("unexpected lastvout.(%s) (%s)\n",jprint(vout1,0),hexstr!=0?hexstr:""); |
|
|
|
} else printf("coinbase without opret (%s)\n",jprint(vouts,0)); |
|
|
|
} |
|
|
|