Closed pkahly closed 5 years ago
Added a print statement to bitcoin_node_api.getnetworkhashps
Output and error
num_blocks: 144. height: None
num_blocks: 144. height: 594252
num_blocks: 144. height: 594251
num_blocks: 144. height: 594250
num_blocks: 144. height: 594249
num_blocks: 144. height: 594248
num_blocks: 144. height: 594247
num_blocks: 144. height: 594246
Traceback (most recent call last):
File "./main.py", line 68, in
Commandline results for these arguments:
$ bitcoin-cli getnetworkhashps 144 594246 1.001339980466565e+20
Error seems to be coming from BitcoinRPC
https://github.com/jgarzik/python-bitcoinrpc/blob/master/bitcoinrpc/authproxy.py#L77
This is a bug in bitcoinrpc. https://github.com/jgarzik/python-bitcoinrpc/issues/92
Will patch my local bitcoinrpc installation and add a note to the instructions.
<class 'decimal.InvalidOperation'>