Bitcoin Forum
May 24, 2024, 08:46:38 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Rpc calls to bitcoind regtest  (Read 206 times)
Johnny GooD (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 04, 2020, 01:17:06 AM
Last edit: January 04, 2020, 03:34:30 AM by Johnny GooD
 #1

Bitcoin Client Software and Version Number:  Bitcoin Core version 0.19.0.1 released

Operating System: Debian 9 i686

System Hardware Specs: really slow!

Description of Problem:

 I spooled up a regtest server with bitcoins but I get an empty response from the server for any curl command I send. If I run "bitcoind -server -rpcuser=me -rpcpassword=pw" I can query the server fine with curl, but when I add -regtest my response is always empty response from server
BitMaxz
Legendary
*
Offline Offline

Activity: 3262
Merit: 2977


:( My PC broke due trying to recover an old wallet


View Profile WWW
January 04, 2020, 11:58:20 PM
 #2

It seems that the regtest is not running.
How about adding regtest=1 in bitcoin.conf ?

If not try this method below.

It seems the bitcoind is the server starting up.Anyone else with the same problem you just need to open one more shell.

I used mingw.
First shell.
Use "bitcoind -regtest -daemon" to start the bitcoin server.

Leave the first shell open and open a second one also.
Use "bitcoin-cli -regtest" then space your "command"

example
"bitcoin-cli -regtest getblockcount"

to stop the first shell normally use this on the second shell.
"bitcoin-cli -regtest stop"

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Johnny GooD (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 05, 2020, 03:03:38 AM
 #3

The regtest server is running fine, I can execute client query fine, just can't get a curl response, I'm going to try the authentication from the .cookie generated file and see if that works
mak max
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 24, 2020, 07:15:20 AM
Last edit: January 24, 2020, 06:25:45 PM by mak max
 #4

I'm making a regtest chain that has simulated node throttling and latency, using a SOCKS5 throttling proxy. I need a way to exempt JSON-RPC calls from going through the proxy, and only have block/transaction/other node traffic go through this proxy. Is there any way I can do this? Any help would be appreciated, as this is for a school research project.
Kodi Lucky Patcher nox
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!