Make sure, that get_coin_for_transaction
returns a coin object with enough balance
#1470
Open
2 of 9 tasks
Labels
Rust
Related to the core Rust code. Becomes part of the Rust changelog.
Description
When the function
get_coin_for_transaction
retrieves aCoin
object, we have to make sure, that this coin has a balance big enough, that we can actually use it.Motivation
Getting a
Coin
object with low balance might lead to our transaction failing. Even worse, if we get the sameCoint
object for everyget_coin_for_transaction
call, this would lock out the current user from making writing operations to the chain. Also the current implementation is not paging through results, which should be changed.To-do list
Add more if points are missing
Change checklist
Add an
x
to the boxes that are relevant to your changes, and delete any items that are not.The text was updated successfully, but these errors were encountered: