Skip to content

Commit

Permalink
Do not assert not spent (Chia-Network#5612)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano54 authored May 20, 2021
1 parent a76446e commit 431f15b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chia/full_node/full_node_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ async def new_signage_point_or_end_of_sub_slot(
)
response = await peer.request_signage_point_or_end_of_sub_slot(full_node_request, timeout=10)
if not isinstance(response, full_node_protocol.RespondEndOfSubSlot):
self.full_node.log.warning(f"Invalid response for slot {response}")
self.full_node.log.debug(f"Invalid response for slot {response}")
return None
collected_eos.append(response)
if (
Expand Down
2 changes: 1 addition & 1 deletion chia/wallet/wallet_coin_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def add_coin_record(self, record: WalletCoinRecord) -> None:
async def set_spent(self, coin_name: bytes32, height: uint32) -> WalletCoinRecord:
current: Optional[WalletCoinRecord] = await self.get_coin_record(coin_name)
assert current is not None
assert current.spent is False
# assert current.spent is False

spent: WalletCoinRecord = WalletCoinRecord(
current.coin,
Expand Down

0 comments on commit 431f15b

Please sign in to comment.