Browse Source

Test

etomic
jl777 8 years ago
parent
commit
a5ffea9774
  1. 5
      iguana/iguana_sign.c

5
iguana/iguana_sign.c

@ -1361,10 +1361,11 @@ int32_t iguana_signrawtransaction(struct supernet_info *myinfo,struct iguana_inf
//printf("call hex2json.(%s) vins.(%s)\n",rawtx,jprint(vins,0));
if ( (txobj= bitcoin_hex2json(coin,height,&txid,msgtx,rawtx,extraspace,extralen,serialized4,vins,V->suppress_pubkeys)) != 0 )
{
printf("back from bitcoin_hex2json\n");
printf("back from bitcoin_hex2json (%s)\n",jprint(vins,0));
} else fprintf(stderr,"no txobj from bitcoin_hex2json\n");
if ( (numinputs= cJSON_GetArraySize(vins)) > 0 )
{
printf("numinputs.%d msgtx.%d\n",numinputs,msgtx->tx_in);
memset(msgtx,0,sizeof(*msgtx));
if ( iguana_rwmsgtx(coin,height,0,0,serialized,maxsize,msgtx,&txid,"",extraspace,65536,vins,V->suppress_pubkeys) > 0 && numinputs == msgtx->tx_in )
{
@ -1463,7 +1464,7 @@ int32_t iguana_signrawtransaction(struct supernet_info *myinfo,struct iguana_inf
complete = 0;
} else printf("%s signed\n",bits256_str(str,*signedtxidp));
} else printf("complete.%d\n",complete);
}
} else printf("rwmsgtx error\n");
} else fprintf(stderr,"no inputs in vins.(%s)\n",vins!=0?jprint(vins,0):"null");
free(extraspace);
free(serialized), free(serialized2), free(serialized3), free(serialized4);

Loading…
Cancel
Save