diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 13032a12e..04c68620d 100644 --- a/src/komodo_bitcoind.h +++ b/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); diff --git a/src/komodo_utils.h b/src/komodo_utils.h index f86a62a60..16886a52c 100644 --- a/src/komodo_utils.h +++ b/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)); }