Update "Could not find parent coin" error log to print hex and not bytes (#17373)

Update "can not find parent coin" error log
This commit is contained in:
Gene Hoffman
2024-01-31 09:27:02 -08:00
committed by GitHub
parent 2020a820bd
commit 8baead2d7a
+1 -1
View File
@@ -752,7 +752,7 @@ class WalletStateManager:
[coin_state.coin.parent_coin_info], peer=peer, fork_height=fork_height
)
if len(response) == 0:
self.log.warning(f"Could not find a parent coin with ID: {coin_state.coin.parent_coin_info}")
self.log.warning(f"Could not find a parent coin with ID: {coin_state.coin.parent_coin_info.hex()}")
return None, None
parent_coin_state = response[0]
assert parent_coin_state.spent_height == coin_state.created_height