Example #1
0
 def build_block_cleanup_service(self) -> AbstractBlockCleanupService:
     if self.opts.use_extensions:
         from bxgateway.services.eth.eth_extension_block_cleanup_service import EthExtensionBlockCleanupService
         return EthExtensionBlockCleanupService(self, self.network_num)
     else:
         return EthNormalBlockCleanupService(self, self.network_num)
Example #2
0
 def _get_cleanup_service(self) -> AbstractEthBlockCleanupService:
     return EthExtensionBlockCleanupService(self.node, 1)