Author

Topic: Rpc calls to bitcoind regtest (Read 231 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
January 24, 2020, 03:39:10 AM
#5
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.



Since you can specify which port used by JSON-RPC (from bitcoin.conf file), how about configure your proxy not to throttle SOCKS5 connection from port used by JSON-RPC?

P.S. please make new thread if you have additional question
newbie
Activity: 2
Merit: 0
January 24, 2020, 02:15:20 AM
#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
newbie
Activity: 2
Merit: 0
January 04, 2020, 10:03:38 PM
#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
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
January 04, 2020, 06: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"
newbie
Activity: 2
Merit: 0
January 03, 2020, 08:17:06 PM
#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
Jump to: