Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c451705b32
  1. 5
      iguana/iguana_scripts.c
  2. 2
      iguana/main.c

5
iguana/iguana_scripts.c

@ -516,6 +516,7 @@ int32_t iguana_scriptgen(struct iguana_info *coin,int32_t *Mp,int32_t *nump,char
{ {
scriptlen = bitcoin_MofNspendscript(rmd160,script,0,vp); scriptlen = bitcoin_MofNspendscript(rmd160,script,0,vp);
if ( asmstr != 0 ) if ( asmstr != 0 )
{
sprintf(asmstr,"%d ",m); sprintf(asmstr,"%d ",m);
for (i=0; i<n; i++) for (i=0; i<n; i++)
{ {
@ -527,12 +528,10 @@ int32_t iguana_scriptgen(struct iguana_info *coin,int32_t *Mp,int32_t *nump,char
} }
else if ( asmstr != 0 ) else if ( asmstr != 0 )
strcat(asmstr,"NOPUBKEY "); strcat(asmstr,"NOPUBKEY ");
}
if ( asmstr != 0 )
{
sprintf(asmstr + strlen(asmstr),"%d // M.%d of N.%d [",n,m,n); sprintf(asmstr + strlen(asmstr),"%d // M.%d of N.%d [",n,m,n);
for (i=0; i<n; i++) for (i=0; i<n; i++)
sprintf(asmstr + strlen(asmstr),"%s%s",vp->signers[i].coinaddr,i<n-1?" ":""); sprintf(asmstr + strlen(asmstr),"%s%s",vp->signers[i].coinaddr,i<n-1?" ":"");
}
strcat(asmstr,"]\n"); strcat(asmstr,"]\n");
} }
} }

2
iguana/main.c

@ -1131,7 +1131,7 @@ void iguana_main(void *arg)
sleep(1); sleep(1);
char *str; char *str;
//iguana_launchcoin(MYINFO.rpcsymbol,cJSON_Parse("{}")); //iguana_launchcoin(MYINFO.rpcsymbol,cJSON_Parse("{}"));
if ( 1 && (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":128,\"maxpeers\":1024,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":1,\"poll\":1}"),0)) != 0 ) if ( 1 && (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":128,\"maxpeers\":1024,\"newcoin\":\"BTC\",\"active\":1,\"numhelpers\":1,\"poll\":1}"),0)) != 0 )
{ {
free(str); free(str);
if ( 0 && (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":1024,\"maxpeers\":256,\"newcoin\":\"BTCD\",\"active\":1}"),0)) != 0 ) if ( 0 && (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":1024,\"maxpeers\":256,\"newcoin\":\"BTCD\",\"active\":1}"),0)) != 0 )

Loading…
Cancel
Save