fe5cb09e05
When creating a "zero-amount" payment request, currently we save a PaymentInfo with a "None" amount. I think there were a few releases in 2023 that saved PaymentInfos with a `0` amount instead. This was changed in #8659 [0], but as said there [1], a DB upgrade was not done. Now an assert added in [2] is failing due to this inconsistency, for affected old wallets. - I think to trigger that, one needs a wallet that has a payment request (with a `0` amount) created around that time, which is still unpaid. This patch tries to restore consistency by enforcing None amounts. fixes https://github.com/spesmilo/electrum/issues/10501 [0]: https://github.com/spesmilo/electrum/pull/8659 [1]: https://github.com/spesmilo/electrum/pull/8659#issuecomment-1777101285 [2]: https://github.com/spesmilo/electrum/commit/286fc4b86e4d23cb9af15b9061b3d709e7592bcb