Browse Source

Test

etomic
jl777 8 years ago
parent
commit
69fdad64a4
  1. 3
      iguana/iguana_sign.c

3
iguana/iguana_sign.c

@ -1431,10 +1431,9 @@ int32_t iguana_signrawtransaction(struct supernet_info *myinfo,struct iguana_inf
if ( (numinputs= cJSON_GetArraySize(vins)) > 0 ) if ( (numinputs= cJSON_GetArraySize(vins)) > 0 )
{ {
memset(msgtx,0,sizeof(*msgtx)); memset(msgtx,0,sizeof(*msgtx));
printf("call rwmsgtx vin0.scriptlen %d\n",msgtx->vins[0].scriptlen);
if ( iguana_rwmsgtx(coin,height,0,0,serialized,maxsize,msgtx,&txid,"",extraspace,65536,vins,V->suppress_pubkeys) > 0 && numinputs == msgtx->tx_in ) if ( iguana_rwmsgtx(coin,height,0,0,serialized,maxsize,msgtx,&txid,"",extraspace,65536,vins,V->suppress_pubkeys) > 0 && numinputs == msgtx->tx_in )
{ {
printf("back rwmsgtx\n"); printf("back rwmsgtx vins.%p\n",msgtx->vins);
memset(pubkeys,0,sizeof(pubkeys)); memset(pubkeys,0,sizeof(pubkeys));
memset(privkeys,0,sizeof(privkeys)); memset(privkeys,0,sizeof(privkeys));
if ( (n= cJSON_GetArraySize(privkeysjson)) > 0 ) if ( (n= cJSON_GetArraySize(privkeysjson)) > 0 )

Loading…
Cancel
Save