what is the Difference between ./bitcoind and $ ./bitcoind -daemon?

0

I was trying to interact with bitcoin network with JSON RPC commands, So I referred to the bitcoin wiki page https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Java it shows to run the bitcoin using 'bitcoind -daemon' command. but another page of bitcoin wiki https://en.bitcoin.it/wiki/Running_Bitcoin suggest running the node using './bitcoind' command.so What is the difference between the two commands?

Akshay Dev

Posted 2018-09-04T06:59:33.027

Reputation: 23

Answers

2

What is the difference between the two commands?

./bitcoind - runs bitcoin node in the foreground.

./bitcoind -daemon - runs bitcoin node as daemon.

What is daemon?

In multitasking computer operating systems, a daemon is a computer program that runs as a background process, rather than being under the direct control of an interactive user.

Зелёный

Posted 2018-09-04T06:59:33.027

Reputation: 871

so the bitcoin -daemon command also download the blockchain data in the background, right?Akshay Dev 2018-09-04T07:20:09.607

bitcoin -daemon runs bitcoin node in the background.Зелёный 2018-09-04T07:20:39.683

@Akshay Operationally, the two are identical. The only difference is whether it runs in the background or not.Pieter Wuille 2018-09-04T17:36:45.620