Bitcoin Forum
October 06, 2024, 11:15:29 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Request for help using regest  (Read 561 times)
stevebc (OP)
Full Member
***
Offline Offline

Activity: 209
Merit: 100


View Profile
July 23, 2015, 09: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=<password> 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





████→→       ● DeepOnion                                                                       ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯
████→→       ● Tor integrated, 100% anonymous!                                       Get Your FREE Coins NOW!     
████→→       ● Free Airdrop! (No ICO, No Crowdfund)                       ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3514
Merit: 6843


Just writing some code


View Profile WWW
July 24, 2015, 03:01:57 AM
 #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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!