def read_headers(self) -> None: if self.config.get('regtest'): self.headers = setup_regtest(self) else: self.headers = Headers.from_file(Net.COIN, self.headers_filename(), Net.CHECKPOINT) for n, chain in enumerate(self.headers.chains(), start=1): # type: ignore logger.info(f'chain #{n}: {chain.desc()}')
def read_headers(self) -> None: self.headers = Headers.from_file(Net.COIN, self.headers_filename(), Net.CHECKPOINT) for n, chain in enumerate(self.headers.chains(), start=1): logger.info(f'chain #{n}: {chain.desc()}')