Author

Topic: Request for help using regest (Read 562 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
July 23, 2015, 10:01:57 PM
#2
You need to first start Bitcoind or bitcoin-qt in regtest mode. Start bitcoin-qt with the server option. When doing so, make sure that bitcoin.conf has an rpcuser and rpcpassword set. It doesn't matter what they are, as long as they exist.
full member
Activity: 209
Merit: 100
July 23, 2015, 04:36:18 PM
#1
I'm attempting to use regtest as in this tutorial:
https://bitcoin.org/en/developer-examples

When I issue this:
bitcoin-cli -regtest generate 101

I get a failure:
'you must set rpcpassword= in the configuration file:
/home/ubuntu/.bitcoin/bitcoin.conf'

I add that file and instead get the error:
'incorrect rpcuser or rpcpassword (authorization failed)'

Do I need particular rpcuser/rpcpassword values in order to use regtest?  Any suggestions as to what I may have missed?

Thanks




Jump to: