Closed m4hdi1995 closed 5 years ago
Make sure you open ports on servers for wallets and also to that config add
To Open Ports Do This ufw allow PORTHERE
Add These To Conf rpcallowip= exchangeip rpcallowip= walletsip
see if that will work
@Brewin95 thanks for your answer , I didn't enabled firewall yet so all ports are open , I will test that and I will share the results , but how does the open trade gets each coin port?! I didn't saw any where of the code that refers to any port, how does it know what port is belong to what coin daemon ? Does it pull them from the each coin config file?!
when you go in to the admin account on add coin it will say coin host something along them lines so put this there
https://IP:PORT IP Being that of the wallet server Port being that of the wallet (port thats in the .conf)
may i ask what OS you are using its always good to do the ufw allow command just incase
ufw allow 22 ufw allow 80 ufw allow 444 etc
@Brewin95 what about the MC and BTC? Aren't they hard coded? (I replaced MC with BTC and BTC as a coin to LTC so I will get the BTC pair instead of MC) Or I need to add them on admin panel? And the ports are alright trust me all ports are open.
yer change all those values and yes you would have to add it to the admin panel also, youll have to build the bitcoin wallet etc then link them with RPC
@Brewin95 hey man , i have tested it now it shows the btc on market but when i try to do rpc test it says "coin RPC is not returned data" but bitcoind is already running , do i need to run bitcoin-cli or anything else too? i'm not familiar with the bitcoin command line i'm familiar with the cryptonote , when i first run bitcoind it has created a wallet.dat
How did you get it work? Still struggling with mine
Try bitcoin-cli getbalance think its something like that :)
@Brewin95 oh , where did you stucked? ok i will try the wallet
does bitcoind handle wallets or bitcoin-cli or bitcoin-wallet?!
Im getting this crazy error when i try to test connection
'"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Cannot POST /</pre>\n</body>\n</html>\n"
'
Usually bitcoin-cli
@Brewin95 i had a problem on accountsserver i'm getting this error :
Error: unexpected init db error 1 at g_utils.ForEachSync (/root/opentrade/accountsserver/database.js:390:28) at onEndOne (/root/opentrade/accountsserver/utils.js:75:13) at Timeout.CreateTable.err [as _onTimeout] (/root/opentrade/accountsserver/database.js:232:13) at ontimeout (timers.js:495:15) at tryOnTimeout (timers.js:323:5) at Timer.listOnTimeout (timers.js:283:5)
it runs for a few seconds then i get the above error and i had to run it again with node main.js , on that a few secs which i had chance to test it sends on admin panel : "<!DOCTYPE html>\n<html lang=\"en\">\n
\n<meta charset=\"utf-8\">\n
hello, i have tested this , everything works ok thanks to the dev, i had a question about bitcoind and bitcoin-cli , with what command should i run them? i'm running bitcoind and it's fully synced, my bitcoin.conf look likes this : ''' rpcuser=myuser rpcpassword=mypass rpcport=1001 rpcclienttimeout=10 rpcallowip=127.0.0.1 server=1 daemon=1 upnp=0 rpcworkqueue=1000 enableaccounts=1 litemode=1 staking=0 ''' how should i run bitcoin-cli to make it work? exchange does not show pairs/coins on Market section, on wallet section it's always loading, i also tried to run ./bitcoin-cli -rpcport=1001 -datadir=btc-blockchain encryptwallet my-string-which-i-included-on-private-constants it returned : error: Could not connect to the server 127.0.0.1:1001 (error code 0 - "timeout reached") thanks.