mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-21 16:41:14 +03:00
Log the correct error (#10399)
This commit is contained in:
parent
a98d02d943
commit
b349c817fd
@ -271,6 +271,10 @@ class PoolWallet:
|
||||
spent_coin_name: bytes32 = tip_coin.name()
|
||||
|
||||
if spent_coin_name != new_state.coin.name():
|
||||
history: List[Tuple[uint32, CoinSpend]] = await self.get_spend_history()
|
||||
if new_state.coin.name() in [sp.coin.name() for _, sp in history]:
|
||||
self.log.info(f"Already have state transition: {new_state.coin.name()}")
|
||||
else:
|
||||
self.log.warning(
|
||||
f"Failed to apply state transition. tip: {tip_coin} new_state: {new_state} height {block_height}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user