diff --git a/chia/full_node/coin_store.py b/chia/full_node/coin_store.py index c9fb3d90a039..9e22e4a100f7 100644 --- a/chia/full_node/coin_store.py +++ b/chia/full_node/coin_store.py @@ -519,6 +519,10 @@ async def _add_coin_records(self, records: List[CoinRecord]) -> None: async def _set_spent(self, coin_names: List[bytes32], index: uint32): assert len(coin_names) == 0 or index > 0 + + if len(coin_names) == 0: + return + updates = [] for coin_name in coin_names: updates.append((index, self.maybe_to_hex(coin_name)))