Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Wrong examples for running RPC #491
Comments
harding
closed this
in
9c4332c
Jul 31, 2014
|
@kostaz Thanks for the report! I just pushed commit 9c4332c which describes how to set the RPC password to the developer examples. The new text will appear on the page in about 10 to 15 minutes. However, it looks like you already skipped over some of the instructions---"In order to use this tutorial, you will need to setup Bitcoin Core and create a regression test mode environment with 50 BTC in your test wallet." Once you setup the RPC password and give yourself 50 BTC in regtest mode, you should be able to follow the rest of the instructions. Thanks again! -Dave |
kostaz commentedJul 31, 2014
Location: https://bitcoin.org/en/developer-examples#testing-applications
The examples for running bitcoin-cli (and, possibly, bitcoind/bitcoin-qt) are wrong:
$ ./bitcoin-cli -regtest getnewaddress
error: You must set rpcpassword= in the configuration file:
/home/kostaz/.bitcoin/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.
Tested from master branch:
$ git log --decorate -1
commit b7bba43a14a641b6b64bbf48357b2987c1b05800 (HEAD, origin/master, origin/HEAD, master)
Merge: 2870014 d2d9dc0
Author: Wladimir J. van der Laan laanwj@gmail.com
Date: Thu Jul 31 09:26:44 2014 +0200
I suggest to to fix examples to be copy-paste ready and not just show the the concept.