Clarify functions which retrieve pubkey sources and balance

get_sources() and get_amount_from_pubkey() return the lists of sources inputs and pubkey’s balance.

Solution 1

  • use dataclass or clarify its usage in comments, inside this two f() and in f() around them.
  • rename to pubkey_balance second returns argument

Solution 2

  • Split f(), one to retrieve sources, one to calculate from those sources, pubkey’s balance.

#113 (closed): 8) rename value to amount

Edited by Moul
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information