edouard 6572b2fa4a
Merge #154: gui: cleanup the "amount left to select" calculation
493dbde666b73097848a5a4c7d10ee1ad7cfeab2 gui: cleanup the "amount left to select" calculation (Antoine Poinsot)

Pull request description:

  It don't think it was blatantly wrong, but neither was it entirely correct. And it was seriously lacking comments explaining what was going on for such a tricky calculation.

  In order to make sure it's correct, and make this more code more maintainable (and readable to future contributors), clean it up by using a more obviously-correct approach: a transaction template that is filled with inputs depending on the coins that were selected.

  I DID NOT TEST IT!

ACKs for top commit:
  edouardparis:
    ACK 493dbde666b73097848a5a4c7d10ee1ad7cfeab2

Tree-SHA512: b8094326f42ed86a4fcd4e16961a7cb77b07d423215665248dd20db66e2c2eb5500fd7cbdb58d0febae5beb3a40f7b531ec24d1c3e7d7a16a45686ac40a89e9b
2022-12-06 15:10:28 +01:00
..
2022-12-01 17:11:56 +01:00
2022-10-31 14:54:26 +01:00
2022-12-02 11:23:29 +01:00