Internal bug detected: Fee needed > fee paid #32683

issue Fuzion24 openend this issue on June 5, 2025
  1. Fuzion24 commented at 1:01 pm on June 5, 2025: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    walletcreatefundedpsbt errors out

    0 walletcreatefundedpsbt "[]" '{"<readacted_addr>":0.01}'
    1error code: -4
    2error message:
    3Internal bug detected: Fee needed > fee paid
    4./wallet/spend.cpp:1320 (CreateTransactionInternal)
    5Bitcoin Core v29.0.0
    6Please report this issue here: https://github.com/bitcoin/bitcoin/issues
    

    Expected behaviour

    walletcreatefundedpsbt should not error out.

    Steps to reproduce

    Create a watch only wallet Import a P2SH publickey Try to create an unsigned TX using the TXOs of the descriptor

    Relevant log output

    No response

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    Bitcoin Core daemon version v29.0.0

    Operating system and version

    Ubuntu 22.04 LTS

    Machine specifications

    No response

  2. fanquake added the label Wallet on Jun 5, 2025
  3. Fuzion24 commented at 4:46 pm on June 5, 2025: none

    I had previously tried with an explicit feeRate, but here’s exactly your example and it’s output:

    0walletcreatefundedpsbt "[]" '{"<redacted address>":0.1}' 0 '{"feeRate":0.0001}'
    1error code: -4
    2error message:
    3Internal bug detected: Fee needed > fee paid
    4./wallet/spend.cpp:1320 (CreateTransactionInternal)
    5Bitcoin Core v29.0.0
    6Please report this issue here: https://github.com/bitcoin/bitcoin/issues
    
  4. maflcko commented at 4:54 pm on June 5, 2025: member

    @Muniru0 Please do not post LLM generated blobs blindly. As can be seen, this isn’t helpful.

    Similar report: #29398 @Fuzion24 It would be helpful if the issue could be reproduced step-by-step on a freshly created regtest testing wallet.

  5. Muniru0 commented at 5:36 pm on June 5, 2025: none

    @Muniru0 Please do not post LLM generated blobs blindly. As can be seen, this isn’t helpful.

    Similar report: #29398

    @Fuzion24 It would be helpful if the issue could be reproduced step-by-step on a freshly created regtest testing wallet.

    Thanks a lot @maflcko. I can that in good faith. I had an idea and used an LLM to try to make it more professional I guess that was my bad. I will try to reproduce the error using the guidelines. I will research thoroughly about this using #29398.

  6. achow101 commented at 6:39 pm on June 5, 2025: member

    Import a P2SH publickey

    Can you be more specific as to what you imported? P2SH is, by definition, more than just a public key nor do P2SH scripts necessarily have to have a public key.

  7. bitcoin deleted a comment on Jun 5, 2025
  8. achow101 commented at 5:43 pm on June 10, 2025: member

    Should you be allowed to create a transaction on a watch only wallet?

    Yes, that’s pretty much the point of a watch-only wallet: to create unsigned transactions that the offline wallet can sign.


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: 2025-06-15 06:13 UTC

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