Ejemplo n.º 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'] = []
Ejemplo n.º 2
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'] = []
Ejemplo n.º 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"] = []
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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()