jl777 8 years ago
parent
commit
defbe39c48
  1. 2
      iguana/iguana_chains.c
  2. 4
      iguana/iguana_notary.c

2
iguana/iguana_chains.c

@ -273,7 +273,7 @@ uint16_t extract_userpass(char *serverport,char *userpass,char *coinstr,char *us
sprintf(serverport,"127.0.0.1:%s",rpcport); sprintf(serverport,"127.0.0.1:%s",rpcport);
free(rpcport); free(rpcport);
} }
if ( 0 && Debuglevel > 1 ) //if ( 0 && Debuglevel > 1 )
printf("-> (%s):(%s) userpass.(%s) serverport.(%s)\n",rpcuser,rpcpassword,userpass,serverport); printf("-> (%s):(%s) userpass.(%s) serverport.(%s)\n",rpcuser,rpcpassword,userpass,serverport);
if ( rpcuser != 0 ) if ( rpcuser != 0 )
free(rpcuser); free(rpcuser);

4
iguana/iguana_notary.c

@ -273,14 +273,14 @@ char *dpow_passthru(struct iguana_info *coin,char *function,char *hex)
TWO_STRINGS(zcash,passthru,function,hex) TWO_STRINGS(zcash,passthru,function,hex)
{ {
if ( (coin= iguana_coinfind("ZEC")) != 0 || coin->chain->serverport[0] == 0 ) if ( (coin= iguana_coinfind("ZEC")) != 0 )
return(dpow_passthru(coin,function,hex)); return(dpow_passthru(coin,function,hex));
else return(clonestr("{\"error\":\"ZEC not active, start in bitcoind mode\"}")); else return(clonestr("{\"error\":\"ZEC not active, start in bitcoind mode\"}"));
} }
TWO_STRINGS(komodo,passthru,function,hex) TWO_STRINGS(komodo,passthru,function,hex)
{ {
if ( (coin= iguana_coinfind("KMD")) != 0 || coin->chain->serverport[0] == 0 ) if ( (coin= iguana_coinfind("KMD")) != 0 )
return(dpow_passthru(coin,function,hex)); return(dpow_passthru(coin,function,hex));
else return(clonestr("{\"error\":\"KMD not active, start in bitcoind mode\"}")); else return(clonestr("{\"error\":\"KMD not active, start in bitcoind mode\"}"));
} }

Loading…
Cancel
Save