Title: JSON and bitcoin-Qt vs. bitcoind Post by: a.miner on April 27, 2014, 08:45:40 PM In the example bitcoin.conf file from https://en.bitcoin.it/wiki/Running_Bitcoin it says
# server=1 tells Bitcoin-QT to accept JSON-RPC commands. Does this also apply to bitcoind? Title: Re: JSON and bitcoin-Qt vs. bitcoind Post by: jonald_fyookball on April 28, 2014, 04:05:36 AM I would guess so since they both appear to use the same conf file
Title: Re: JSON and bitcoin-Qt vs. bitcoind Post by: mcaizgk2 on April 28, 2014, 12:50:07 PM In the example bitcoin.conf file from https://en.bitcoin.it/wiki/Running_Bitcoin it says # server=1 tells Bitcoin-QT to accept JSON-RPC commands. Does this also apply to bitcoind? "server = 1" enables the server mode in Bitcoin Core, in other words you can run the GUI client and also send JSON-RPC commands to it. If you don't use "server = 1" and you still want to execute JSON-RPC commands then have to choose between the GUI client (Bitcoin Core) and bitcoind, as they cannot run concurrently for the same configuration. It makes no difference if applied as-is to bitcoind. Title: Re: JSON and bitcoin-Qt vs. bitcoind Post by: a.miner on April 28, 2014, 04:51:07 PM "server = 1" enables the server mode in Bitcoin Core, in other words you can run the GUI client and also send JSON-RPC commands to it. If you don't use "server = 1" and you still want to execute JSON-RPC commands then have to choose between the GUI client (Bitcoin Core) and bitcoind, as they cannot run concurrently for the same configuration. It makes no difference if applied as-is to bitcoind. Do I understand correctly that I only need to set server=1 if I want to run bitcoin-Qt? I will not be running bitcoin-Qt. I want to run bitcoind and I want it to accept JSON-RPC commands from p2pool. Do I set server=1 or server=0 or leave it commented out? Title: Re: JSON and bitcoin-Qt vs. bitcoind Post by: mcaizgk2 on April 28, 2014, 07:50:31 PM Yes, you need server=1 only if you want the Bitcoin-Qt to also act as a server for JSON-RPC commands.
If you will be executing your JSON-RPC commands straight to bitcoind you don't need to set server=1. Call bicoind with the -debug -printtoconsole command line arguments to get a responsive representation of what is going on in your terminal screen. You can always test bitcoind's status by running bitcoin-cli getinfo and see if it responds. You will have to add rpcuser and rpcpassword in your bitcoin.conf to access it from an external client. Title: Re: JSON and bitcoin-Qt vs. bitcoind Post by: a.miner on April 29, 2014, 12:39:37 AM Yes, you need server=1 only if you want the Bitcoin-Qt to also act as a server for JSON-RPC commands. If you will be executing your JSON-RPC commands straight to bitcoind you don't need to set server=1. Call bicoind with the -debug -printtoconsole command line arguments to get a responsive representation of what is going on in your terminal screen. You can always test bitcoind's status by running bitcoin-cli getinfo and see if it responds. You will have to add rpcuser and rpcpassword in your bitcoin.conf to access it from an external client. This is exactly what I needed to know. Thank you very much. |