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"] = []
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()
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()
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()