[KVEvent] User request.block_hash for parent block_hash (#30544)

Signed-off-by: Chen Zhang <zhangch99@outlook.com>
Signed-off-by: Yifan Qiao <yifanqiao@berkeley.edu>
Co-authored-by: Yifan Qiao <yifanqiao@berkeley.edu>
This commit is contained in:
Chen Zhang
2025-12-23 18:23:43 -08:00
committed by GitHub
co-authored by Yifan Qiao
parent 4ed11105d7
commit 538e830caa
2 changed files with 64 additions and 3 deletions
+1 -3
View File
@@ -270,10 +270,8 @@ class BlockPool:
if num_cached_blocks == 0:
parent_block_hash: ExternalBlockHash | None = None
else:
parent_block = blocks[num_cached_blocks - 1]
assert parent_block.block_hash is not None
parent_block_hash = maybe_convert_block_hash(
get_block_hash(parent_block.block_hash)
block_hashes[num_cached_blocks - 1]
)
self.kv_event_queue.append(