Hot answers tagged

16

EDIT: Caveat emptor on Ubuntu distributions from 14.10 and forward - init was chosen over upstart and is being phased in the future. I don't know when that will be done nor what impact it will have on upstart scripts. Extract from the page RentFree refers to; note that it assumes that you have created a user called bitcoinuser for the sake of security: For ...


14

After having installed Bitcoin core on your machine, run the following command to start synchronising the testnet blockchain bitcoind -testnet -daemon The synchronisation starts as a daemon and runs in the background, you can issue the following the command to see the progress tailf ~/.bitcoin/testnet3/debug.log To access the command line apis , just add the ...


12

There's an upstart script for Ubuntu in the Bitcoin Core source tree. Using that is the most correct way. However, I just login as the user account I want to run Bitcoin Core daemon, start a terminal (if I'm in the GUI), and run the following command to edit my crontab: crontab -e Then I add the following line: @reboot bitcoind -daemon Save the file ...


8

.exe files are for windows only. Linux systems do not use the same file extension or file type as windows. I assume you just want to create a Linux binary that can be used on all systems without installing all dependencies. To do that, you can use Bitcoin Core's depends system. Instructions are here: https://github.com/bitcoin/bitcoin/tree/master/depends. ...


6

I just installed bitcoind on an RPi and wanted to do this exact thing. Thought I'd post what worked for me: $ bitcoin-cli getblockcount 7437 Block height is 366678 at the time of this post...long way to go


6

getinfo is now deprecated. Use getblockchaininfo instead: bitcoin-cli -testnet getblockchaininfo I don't have 50 reputation to comment. Otherwise, I would've added this as a comment.


6

esplora is just the web ui frontend, you also need to setup the (forked) electrs backend for indexing and for providing the HTTP API that esplora queries. electrs can index the bitcoin block chain using two methods: by reading the blk files directly out of disk, or by querying for blocks using the bitcoind rpc. The first method is significantly faster, but ...


5

bitcoin-cli getinfo will show the number of connections. bitcoin-cli getpeerinfo will give information about individual connections.


5

Two thoughts: The wildcard syntax is not supported anymore. Instead of 192.168.*.*, use 192.168.0.0/16. Instead of 192.168.1.*, use 192.168.1.0/24. As an additional debugging step, try running netstat -antlp | grep 8332. If that produces output like the following, that means that it is bound to the port. tcp 0 0 0.0.0.0:8332 0.0.0.0:...


5

Answers to your respective questions: Since 0.12, bitcoind supports cookie file authentication. This means that on startup of bitcoind, a file with a random key in it is created. Anyone who can present the contents of that file to the running bitcoind is allowed access. Since bitcoin-cli runs locally and as the same user, it can read this file and do so. ...


4

I suggest to use one of the updated cpuminer versions which support more than one algorithm. This way you are also set up to mine different coins which use other PoW functions. The most versatile one is tpruvot's fork:cpuminer-multi. For me this one worked out of the box on a recent Ubuntu 14.04 installation. The syntax is similar to all other cpuminer ...


4

Assessment I think you are slightly misunderstanding some things, but basically you are already on the right path. Wallet I signed up for a bitcoin wallet (coinbase) where I am given an id. Great. When you want to manage your wallet (send and receive Bitcoin, create new wallets etc.) on your local machine, that’s a must. On a side-note: in ...


4

I would highly recommend using Ubuntu Server for this, as long as you know what you are doing without a GUI. Not having a GUI at all means smaller OS size and much less OS tasks. This translates into more power savings. If you are using graphics cards, a non-GUI OS will improve your mining performance. If using an ASIC/etc. you probably will not see ...


4

The message ERROR: AcceptToMemoryPool is to do with your node accepting new transactions from the network and doesn't have anything to do with your local sync state. It just means that someone made a transaction and broadcast it to you which does not respect the rules of your current software version. It should really be "INFO" rather than error, or simply ...


4

In Bitcoin Core 0.11 pruning is experimental, and incompatible with the wallet. So turning on the prune= option automatically disables the wallet function. In 0.12 the wallet will work with pruning (though you obviously won't be able to rescan past the pruning cutoff).


4

The configuration file is definitely in $HOME/.bitcoin/. If you cannot see it, the most likely explanation is that you have not created it. Just use your favorite text editor to do so. As far as I can tell, bitcoind -daemon will run without bitcoin.conf being present and you will still get the message 'Using config file /home/user/.bitcoin/bitcoin.conf' in ...


4

Since this is the first result that pops up on google when searching "bitcoin windows depends build" and the user asked how to build the .exe (but was actually looking for static build instructions on ubuntu) the correct instructions would be to use cross compilation with the depends system as specified in the documentation here: https://github.com/bitcoin/...


4

There is no need to resolve anything - some miners create arbitrary versions to attempt to speed up the mining process, as it gives them an additional field in the block block header to alter without having to recalculate the merkle root and other fields. This is harmless, provided they aren't producing invalid blocks for version 2, in which case the block ...


3

I wanted a nicer output. Based off @o0'. answer ... BC_CURRENT=`./bitcoin-cli getblockcount 2>&1`; BC_HEIGHT=`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`; perl -E "say sprintf('Block %s of %s (%.2f%%)', $BC_CURRENT, $BC_HEIGHT, ($BC_CURRENT/$BC_HEIGHT)*100)"; Outputs ... Block 360693 of 471139 (76.56%)


3

I finally end up with this setting for my raspberry nano /etc/systemd/system/bitcoind.service content of the file bitcoind.service [Unit] Description=bitcoin After=network.target [Service] Type=forking User=pi Group=pi Environment=BITCOIN_PID=/home/pi/.bitcoin/bitcoin.pid Environment=BITCOIN_HOME=/home/pi/.bitcoin ExecStart=/usr/local/bin/bitcoind ...


3

here a bash script for see the live progress create a file nano [nom fichier] and copy the code below run script with bash [nom fichier] stop script by type on your keyboard Script : sleepTime=4 #set time between updates blocksPris=$(bitcoin-cli getblockcount) blocksTotal=$(wget -O - http://blockchain.info/q/getblockcount 2>/dev/null) pourcentage=$(((...


3

tail -f .bitcoin/debug.log You will see the progress % in the end of every line. 2019-05-21T15:53:22Z UpdateTip: new best=00000000000007463022a75f47fbce4832d885cccfddc66b9ae6d332888f825d height=181720 version=0x00000001 log2_work=68.184645 tx=3482689 date='2012-05-26T22:08:18Z' progress=0.008422 cache=256.7MiB(1838887txo) Here, in case you did not find it ...


3

The PPA is on 0.8.6, which is very recent (just missing 0.9, but I'm gonna hopefully upload that today). What you're referring to is the Ubuntu package distribution, which is very, very, very out of date (to the point of it being largely non-functional).


3

First of all, I'd suggest to create a separate user account for this: adduser bitcoin And use that account to run your bitcoind from. You can open the port 8333 on your firewall if you want to provide a "full-node" to the network, but do not open the port 8332 (that's for RPC). For better security though, I don't recommend using the same bitcoind ...


3

In the official release announcement here: https://bitcointalk.org/index.php?topic=1039713.msg11211433#msg11211433 Downgrade warning Because release 0.10.0 and later makes use of headers-first synchronization and parallel block download (see further), the block files and databases are not backwards-compatible with pre-0.10 versions of Bitcoin Core or other ...


3

You are using an ancient version of bfgminer CPU mining was disabled by default even in bfgminer 3.10.0, your gpu doesn't seem to get detected You're about 4 years late for CPU mining and 3 years late for GPU mining: Even if you get bfgminer to run, your PC will not be powerful enough to even find shares that would be accepted by a pool. See e.g. Can I do ...


3

Mining on a cpu at all is a bad idea, it can and will wear the cpu down, and is ridiculously slow compared to a gpu. Also mining with an Nvidia card isn't the smartest thing either as they are much slower than AMD cards. Regardless you will make next to no money mining with this kind of hardware given that there are thousands of people with ASIC miners that ...


3

You can build your miner with a bash command: $ while true; do bitcoin-cli -regtest generate 1; sleep 300; done You'l get a block every 5'. If you want a better simulation of mainnet you could use a rndom sleep


3

The init scripts can be found here: https://github.com/bitcoin/bitcoin/tree/master/contrib/init.


2

If you have bitcoin cli installed. The below command will help. echo `bitcoin-cli getblockcount 2>&1`/`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null` Sample output 365320/512421 This is slight improvement of above answer. But it returned Error: Command line contains unexpected token 'getblockcount', see bitcoind -h for a list ...


Only top voted, non community-wiki answers of a minimum length are eligible