litecoincash-project / litecoincash

Main release & integration tree for Litecoin Cash
https://litecoinca.sh
MIT License
54 stars 39 forks source link

RPC Net Port #7

Closed vr4dude316 closed 6 years ago

vr4dude316 commented 6 years ago

Which port # should I use for my conf file to connect?

vr4dude316 commented 6 years ago

rpcuser=rpcuserxxxx rpcpassword=paswordxxxx server=1 daemon=1 listen=1 rpcport=9332

vr4dude316 commented 6 years ago

litecoincashd -daemon will not start complaining of incorrect RPC port

litecoincash-project commented 6 years ago

Try also specifying allowed RPC ip, and ip to bind to:

rpcallowip=127.0.0.1 rpcbind=127.0.0.1

You shouldn't need listen and daemon; server=1 should be enough.

My complete config looks similar to:

rpcuser=rpctest rpcpassword=rpctest rpcallowip=127.0.0.1 rpcbind=127.0.0.1 server=1

(and I connect via the default RPC port 62457)

vr4dude316 commented 6 years ago

Thank you. Will give a shot. Using UNOMP pool on ubuntu 14.04 For the coin config, do i need peer magic included?

litecoincash-project commented 6 years ago

If you'd like p2p block notifications, then yes: try "c7e4baf8" for your peerMagic config

vr4dude316 commented 6 years ago

Thank you... still no joy unomp@ubuntu:~/unomp$ litecoincashd -daemon LitecoinCash server starting unomp@ubuntu:~/unomp$ litecoincash-cli getblockchaininfo error: couldn't connect to server: unknown (code -1) (make sure server is running and you are connecting to the correct RPC port) config: rpcuser=poolrpcuser rpcpassword=387dgDPc9Dj7Z6XESN7dHeESbqBa6u9xQc server=1 rpcallowip=127.0.0.1 rpcbind=127.0.0.1 rpcallowip=127.0.0.1 rpcport=62457

Weird thing is, it was running and downloaded the entire blockchain. i bounced my box and now wont start back

litecoincash-project commented 6 years ago

Hmmm, can you paste some of debug.log after startup happens?

Edit: Also, if you litecoincash.conf isn't at ~/.litecoincash/litecoincash.conf, pass both litecashd and litecoincash-cli the argument --conf=/path/to/litecoincash.conf

red0bear commented 6 years ago

Do you have magic number correct and more peers ?

vr4dude316 commented 6 years ago

I just wiped everything out and compiling fresh. Thanks for the help. Will post back once running again. my conf file is in the /.litecoincash dir. As for magic number, not sure what you mean. Im just a moderate noob at linux

litecoincash-project commented 6 years ago

Assuming you sorted this; feel free to open a new Issue if not.