mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-20 08:05:33 +03:00
checkpoint: into main from release/2.0.0 @ a5a988c320
(#15978)
Source hash: a5a988c320
Remaining commits: 6
This commit is contained in:
commit
7c4e8a8538
@ -57,7 +57,7 @@ async def get_average_block_time(
|
||||
if newer_block.height < 1:
|
||||
return None
|
||||
|
||||
prev_height = uint32(max(newer_block.height - 1, newer_block.height - height_distance))
|
||||
prev_height = uint32(max(1, newer_block.height - height_distance))
|
||||
prev_hash = blockchain.height_to_hash(prev_height)
|
||||
assert prev_hash
|
||||
prev_block = await blockchain.get_block_record_from_db(prev_hash)
|
||||
|
Loading…
Reference in New Issue
Block a user