Unable to create PSBT for legacy watchonly wallets in the GUI #26687

issue achow101 openend this issue on December 12, 2022
  1. achow101 commented at 3:33 pm on December 12, 2022: member

    A user reported to me that they are unable to create a PSBT with a legacy watchonly wallet when they use the GUI. They get an error “The amount exceeds your balance”.

    I think the issue is that the GUI will retrieve the wallet’s balance via AvailableCoins before calling CreateTransaction. This call to AvailableCoins is resulting in fewer coins being returned with recent changes to how AvailableCoins works, particularly with additional filtering of spendable coins and preset coins.


    Note that this does not effect descriptor wallets. A workaround for this issue is to switch to using descriptor wallets. An existing legacy wallet can be turned into a descriptor wallet using the migratewallet RPC. However many watchonly legacy wallets are likely the result of importing descriptors via importmulti. For such wallets, I recommend creating a new descriptor wallet and re-importing the descriptors.

  2. achow101 added the label Bug on Dec 12, 2022
  3. furszy commented at 12:14 pm on December 15, 2022: member
    Fixed inside #26699.
  4. furszy referenced this in commit 60d601d551 on Apr 2, 2023
  5. Sjors commented at 12:08 pm on April 3, 2023: member
    I was able to reproduce this issue and indeed #26699 fixes it.
  6. furszy referenced this in commit cd98b71739 on Apr 3, 2023
  7. furszy referenced this in commit 65e384eddf on Apr 11, 2023
  8. achow101 referenced this in commit 27dcc07c08 on Apr 11, 2023
  9. furszy commented at 6:29 pm on April 11, 2023: member
    #26699 merged, can be closed.
  10. fanquake closed this on Apr 11, 2023

  11. RandyMcMillan referenced this in commit 7a3610f8ad on May 27, 2023
  12. bitcoin locked this on Apr 10, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-03 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me