def on_headers(self, conn, message):
    if (len(message.headers) > 0):
        best_header = message.headers[(- 1)]
        best_header.calc_sha256()
        self.bestblockhash = best_header.sha256
def on_headers(self, conn, message):
    if (len(message.headers) > 0):
        best_header = message.headers[(- 1)]
        best_header.calc_sha256()
        self.bestblockhash = best_header.sha256