Skip to content

Commit b185fcd

Browse files
committed
Fix bug due to decoupling
1 parent ce42a74 commit b185fcd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

electrum/blockchain.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,9 @@ def get_target(self, chunk_index: int) -> int:
687687
return 0
688688
if chunk_index == -1:
689689
return MIN_TARGET
690+
if chunk_index < len(self.checkpoints):
691+
_, target = self.checkpoints[chunk_index]
692+
return target
690693
next_chunk_start = (chunk_index + 1) * constants.CHUNK_SIZE
691694

692695
if is_interim_daa_active(next_chunk_start):

0 commit comments

Comments
 (0)