fix add_sub_block

This commit is contained in:
almog 2021-01-27 15:36:00 +02:00 committed by Gene Hoffman
parent 08e7658d64
commit 285b44939c

View file

@ -60,7 +60,7 @@ class BlockCache(BlockchainInterface):
del self._sub_blocks[header_hash]
def add_sub_block(self, sub_block: SubBlockRecord):
self._sub_blocks[sub_block] = sub_block
self._sub_blocks[sub_block.header_hash] = sub_block
async def get_header_blocks_in_range(self, start: int, stop: int) -> Dict[bytes32, HeaderBlock]:
return self._headers