fix add_sub_block
This commit is contained in:
parent
08e7658d64
commit
285b44939c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue