Code:
Traceback (most recent call last):
File "./linearize.py", line 130, in <module>
get_blocks(settings)
File "./linearize.py", line 79, in get_blocks
data = getblock(rpc, settings, height)
File "./linearize.py", line 66, in getblock
hash = rpc.getblockhash(n)
File "./linearize.py", line 63, in getblockhash
return self.rpc('getblockhash', [index])
File "./linearize.py", line 41, in rpc
'Content-type' : 'application/json' })
File "/usr/lib/python2.7/httplib.py", line 973, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1007, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 791, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 772, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 571, in create_connection
raise err
socket.error: [Errno 111] Connection refused
I don't know Python so I can't understand what's wrong. I just edited the max_height variable in example-linearize.cfg before running the script:
Code:
# bitcoind RPC settings
rpcuser=someuser
rpcpassword=somepassword
host=127.0.0.1
port=8332
# bootstrap.dat settings
netmagic=f9beb4d9
max_height=295000
output=bootstrap.dat