Insane fee check doesn't return clear error to the sendrawtransaction RPC #4341

issue Michagogo opened this issue on June 15, 2014
  1. Michagogo commented at 3:57 PM on June 15, 2014: contributor

    Rather than a message that's readable, it just returns this: $ bitcoin-cli sendrawtransaction 01000000018368ead3c8677725a71ba7d17dc181ef41ebafcddd833dc67842ed155e6620780000000049483045022100a62a6379db25aada0c0252c3bcac95038992327d851f85f455c85d12fc935b0a022020d01881135a35f173c7d58dc98cb09017e23bbbc182d8c993e10da6ebb8a68a01ffffffff0100301a1e010000001976a914c04b7b7d1d6de24c83a77dd229e1f4488b09ee9f88ac00000000 error: {"code":-25,"message":""}

  2. elichai commented at 5:48 PM on June 15, 2014: contributor

    Thanks for openning an issue, but if you'll add 'true' after the hex it will work, becuase 'sendrawtransaction' is accepting two arguements:

    1. "hexstring" (string, required) The hex string of the raw transaction)
    2. allowhighfees (boolean, optional, default=false) Allow high fees
  3. elichai commented at 6:05 PM on June 15, 2014: contributor

    drak, you right. i'm sorry.

  4. laanwj added the label RPC on Jul 31, 2014
  5. macoymejia commented at 7:47 AM on August 5, 2014: none

    I already tried allowhighfees to "true", but still gives me -25 error code

    bitcoind sendrawtransaction -hex- true error: {"code":-25,"message":""}

  6. Michagogo commented at 2:20 PM on August 5, 2014: contributor

    @macoymejia You seem to be missing, uh, the actual transaction...

  7. macoymejia commented at 2:51 AM on August 10, 2014: none

    oopsie... yeah there's <hex string> parameter (I thought comment will parse < and > as I type)

    anyway... I found out that I'm sending invalid unspent item. no more -25 error :) thanks @Michagogo

  8. priiduneemre commented at 12:04 PM on March 17, 2015: none

    Still... in the long run, maybe a more descriptive error message should be returned when bouncing against the 'insane fee' check of sendrawtransaction(..)?

    Took me quite a while to figure out what was wrong with my raw transaction and the generic error response wasn't really helping either: {"result":null,"error":{"code":-25,"message":""},"id":"e7040c392ccb4adb92770dc168d97ae6"}

  9. sipa commented at 12:54 PM on March 17, 2015: member

    See #5913.

  10. paveljanik commented at 8:01 PM on October 1, 2015: contributor

    Fixed now?

  11. laanwj commented at 8:44 PM on October 1, 2015: member

    Yes.

  12. laanwj closed this on Oct 1, 2015

  13. DrahtBot locked this on Sep 8, 2021

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: 2026-04-13 15:15 UTC

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