Merge pull request #11714 from Chia-Network/el.1.4.overflow

Set the overflow to the last SES overflow
This commit is contained in:
William Allen
2022-05-31 13:54:14 -05:00
committed by GitHub
+2 -2
View File
@@ -180,10 +180,10 @@ class WalletWeightProofHandler:
overflow = 0
count = 0
for idx, new_ses in enumerate(new_wp.sub_epochs):
for new_ses in new_wp.sub_epochs:
if new_ses.reward_chain_hash in old_ses:
count += 1
overflow += new_ses.num_blocks_overflow
overflow = new_ses.num_blocks_overflow
continue
else:
break