fix lgtm issues (#9198)

This commit is contained in:
Arvid Norberg 2021-11-19 20:11:25 +01:00 committed by GitHub
parent 7178d47d3a
commit a29b1158ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -97,11 +97,12 @@ class LastState:
self.passed_ses_height_but_not_yet_included = False
else:
self.infused_ses = False
self.passed_ses_height_but_not_yet_included = self.passed_ses_height_but_not_yet_included
# Since we have a new sub slot which is not an end of subepoch,
# we will use the last value that we saw for
# passed_ses_height_but_not_yet_included
self.last_challenge_sb_or_eos_total_iters = self.total_iters
else:
self.passed_ses_height_but_not_yet_included = self.passed_ses_height_but_not_yet_included
self.new_epoch = False
assert False
self.reward_challenge_cache.append((self.get_challenge(Chain.REWARD_CHAIN), self.total_iters))
log.info(f"Updated timelord peak to {self.get_challenge(Chain.REWARD_CHAIN)}, total iters: {self.total_iters}")

View File

@ -1,6 +1,6 @@
import warnings
from .coin_spend import CoinSpend as CoinSolution # noqa
from .coin_spend import CoinSpend as CoinSolution # noqa lgtm[py/unused-import]
warnings.warn("`CoinSolution` is now `CoinSpend`")