Esempio n. 1
0
 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()}')
Esempio n. 2
0
 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()}')