iotaledger / iota-sdk

The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs.
Apache License 2.0
54 stars 39 forks source link

Fix an infinite loop with auto allotment #2202

Closed DaughterOfMars closed 3 months ago

DaughterOfMars commented 3 months ago

Description of change

There is a problem when auto allotting when there are only accounts available which will not provide enough mana, where the allotment will loop forever. This is because we always re-check when the transaction cannot be built due to missing inputs or outputs. However, we should only re-check when new inputs are selected.