hello, i am attempting to connect the blockstack-core node to a regtest bitcoind instance. Bitcoin is started in the regtest & server mode and blockstack-core is able index transactions. When i run blockstack pricing there is an error - unable to get fee estimate. The debug statements are posted below. Am i missing any other configuration here?
[2018-03-19 07:04:47,935] [ERROR] [fees:109] (3337.140593917351680)
Traceback (most recent call last):
File “/usr/local/lib/python2.7/site-packages/virtualchain/lib/blockchain/bitcoin_blockchain/fees.py”, line 87, in get_tx_fee_per_byte
fee = bitcoind_client.estimatefee(2)
File “/usr/local/lib/python2.7/site-packages/virtualchain/lib/blockchain/bitcoin_blockchain/authproxy.py”, line 143, in call
response = self._get_response()
File “/usr/local/lib/python2.7/site-packages/virtualchain/lib/blockchain/bitcoin_blockchain/authproxy.py”, line 185, in _get_response
http_response = self.__conn.getresponse()
File “/usr/local/lib/python2.7/httplib.py”, line 1108, in getresponse
raise ResponseNotReady()
ResponseNotReady
[2018-03-19 07:04:47,936] [ERROR] [fees:111] (3337.140593917351680) Failed to estimate tx fee per byte
[2018-03-19 07:04:47,936] [ERROR] [actions:627] (3337.140593917351680) Unable to calculate fee per byte
{
“error”: “Unable to get fee estimate”
}
Your bitcoind node is clearly up and taking requests. The ResponseNotReady() exception you’re seeing appears to be outside of Blockstack. But, it can be triggered by certain versions of the requests package, which Blockstack uses to talk to bitcoind. Can you tell me which version of requests you’re using?
I’m having a hard time duplicating the problem on my machine. Can you show me the output of running blockstack price with BLOCKSTACK_DEBUG=1 set in the environment?
Alternatively, does this work?
$ blockstack api start
$ curl http://localhost:6270/v1/prices/names/YOUR_NAME.id
Interesting—you see how it’s trying to connect to http://"blockstack"@localhost:1443? If you look in your ~/.blockstack/client.ini file under the [bitcoind] section, do you have user = "blockstack" or user = blockstack (no quotes)? If you have quotes, can you try removing them? The value for user = is passed as the authentication username as a literal.
yeah i have corrected and that error is not coming up but again I am still unable to get the fee estimate . Could it be because of not enough transactions and blocks on regtest node for estimatefee to generate a fee?