def send_header_for_blocks(self, new_blocks):
    headers_message = msg_headers()
    headers_message.headers = [CBlockHeader(b) for b in new_blocks]
    self.send_message(headers_message)
def send_header_for_blocks(self, new_blocks):
    headers_message = msg_headers()
    headers_message.headers = [CBlockHeader(b) for b in new_blocks]
    self.send_message(headers_message)