Browse Source

Test

pull/4/head
jl777 6 years ago
parent
commit
a643c07810
  1. 1
      src/komodo_bitcoind.h
  2. 3
      src/komodo_utils.h

1
src/komodo_bitcoind.h

@ -995,6 +995,7 @@ int32_t komodo_staked(uint256 *utxotxidp,int32_t *utxovoutp,uint64_t *utxovaluep
memset(utxotxidp,0,sizeof(*utxotxidp));
memset(utxovoutp,0,sizeof(*utxovoutp));
memset(utxosig,0,72);
printf("%s port.%u %s\n",ASSETCHAINS_SYMBOL,BITCOIND_PORT,ASSETCHAINS_USERPASS);
if ( (retstr= komodo_issuemethod(ASSETCHAINS_USERPASS,(char *)"listunspent",(char *)"[]",BITCOIND_PORT)) != 0 )
{
fprintf(stderr,"listunspent.(%s)\n",retstr);

3
src/komodo_utils.h

@ -1422,7 +1422,8 @@ uint16_t komodo_userpass(char *userpass,char *symbol)
{
port = komodo_userpass(username,password,fp);
sprintf(userpass,"%s:%s",username,password);
strcpy(ASSETCHAINS_USERPASS,userpass);
if ( strcmp(symbol,ASSETCHAINS_SYMBOL) == 0 )
strcpy(ASSETCHAINS_USERPASS,userpass);
fclose(fp);
return((int32_t)strlen(userpass));
}

Loading…
Cancel
Save