Exemple #1
0
 def request_header(self, interface, data, height):
     interface.print_error("requesting header %d" % height)
     interface.send_request({'method':'blockchain.block.get_header', 'params':[height]})
     data['header_height'] = height
     data['req_time'] = time.time()
     if not 'chain' in data:
         data['chain'] = []
 def request_header(self, interface, data, height):
     interface.print_error("requesting header %d" % height)
     interface.send_request({'method':'blockchain.block.get_header', 'params':[height]})
     data['header_height'] = height
     data['req_time'] = time.time()
     if not 'chain' in data:
         data['chain'] = []
Exemple #3
0
 def request_header(self, interface, data, height):
     interface.print_error("requesting header %d" % height)
     interface.send_request({"method": "blockchain.block.get_header", "params": [height]})
     data["header_height"] = height
     data["req_time"] = time.time()
     if not "chain" in data:
         data["chain"] = []
Exemple #4
0
 def request_chunk(self, interface, data, idx):
     interface.print_error("requesting chunk %d" % idx)
     interface.send_request({
         'method': 'blockchain.block.get_chunk',
         'params': [idx]
     })
     data['chunk_idx'] = idx
     data['req_time'] = time.time()
Exemple #5
0
 def request_chunk(self, interface, data, idx):
     interface.print_error("requesting chunk %d" % idx)
     interface.send_request({'method':'blockchain.block.get_chunk', 'params':[idx]})
     data['chunk_idx'] = idx
     data['req_time'] = time.time()
Exemple #6
0
 def request_chunk(self, interface, data, idx):
     interface.print_error("requesting chunk %d" % idx)
     interface.send_request({"method": "blockchain.block.get_chunk", "params": [idx]})
     data["chunk_idx"] = idx
     data["req_time"] = time.time()