remove duplicate code

This commit is contained in:
almog
2021-01-26 17:49:35 +02:00
parent b4310b5fe2
commit aef0f20a7c
2 changed files with 0 additions and 8 deletions
-4
View File
@@ -531,10 +531,6 @@ class Blockchain(BlockchainInterface):
def sub_block_record(self, header_hash: bytes32) -> SubBlockRecord:
return self.__sub_blocks[header_hash]
def height_to_sub_block_record(self, sub_height: uint32) -> SubBlockRecord:
header_hash = self.sub_height_to_hash(sub_height)
return self.sub_block_record(header_hash)
def get_ses_heights(self) -> List[uint32]:
return sorted(self.__sub_epoch_summaries.keys())
-4
View File
@@ -28,10 +28,6 @@ class BlockCache(BlockchainInterface):
def sub_block_record(self, header_hash: bytes32) -> SubBlockRecord:
return self._sub_blocks[header_hash]
def height_to_sub_block_record(self, height: uint32, check_db=False) -> SubBlockRecord:
header_hash = self.sub_height_to_hash(height)
return self.sub_block_record(header_hash)
def get_ses_heights(self) -> List[uint32]:
return sorted(self._sub_epoch_summaries.keys())