Bitcoin Forum
May 04, 2024, 10:27:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Request for help using regest  (Read 559 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)                       ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯
1714861645
Hero Member
*
Offline Offline

Posts: 1714861645

View Profile Personal Message (Offline)

Ignore
1714861645
Reply with quote  #2

1714861645
Report to moderator
1714861645
Hero Member
*
Offline Offline

Posts: 1714861645

View Profile Personal Message (Offline)

Ignore
1714861645
Reply with quote  #2

1714861645
Report to moderator
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714861645
Hero Member
*
Offline Offline

Posts: 1714861645

View Profile Personal Message (Offline)

Ignore
1714861645
Reply with quote  #2

1714861645
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6581


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!