mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-10 12:29:49 +03:00
fix lgtm issues (#9198)
This commit is contained in:
parent
7178d47d3a
commit
a29b1158ee
@ -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}")
|
||||
|
@ -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`")
|
||||
|
Loading…
Reference in New Issue
Block a user