Skip to content

Commit

Permalink
[CHIA-1659] Delete unnecessary TODO in auto_claim_coins (#18957)
Browse files Browse the repository at this point in the history
Delete unnecessary `TODO` in `auto_claim_coins`
  • Loading branch information
Quexington authored Dec 4, 2024
1 parent 197ea79 commit 40614d5
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions chia/wallet/wallet_state_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,22 +926,6 @@ async def auto_claim_coins(self) -> None:
clawback_coins[coin.coin] = metadata
if len(clawback_coins) >= self.config.get("auto_claim", {}).get("batch_size", 50):
await self.spend_clawback_coins(clawback_coins, tx_fee, action_scope)
async with action_scope.use() as interface:
# TODO: editing this is not ideal, action scopes should know what coins are spent
action_scope._config = dataclasses.replace(
action_scope._config,
tx_config=dataclasses.replace(
action_scope._config.tx_config,
excluded_coin_ids=[
*action_scope.config.tx_config.excluded_coin_ids,
*(
c.name()
for tx in interface.side_effects.transactions
for c in tx.removals
),
],
),
)
clawback_coins = {}
except Exception as e:
self.log.error(f"Failed to claim clawback coin {coin.coin.name().hex()}: %s", e)
Expand Down

0 comments on commit 40614d5

Please sign in to comment.