Debug console + RPC: problems with very large transactions #3896

issue dexX7 opened this issue on March 19, 2014
  1. dexX7 commented at 12:13 AM on March 19, 2014: contributor

    I created a valid, signed transaction with nearly 28 kb length and faced several problems.

    Within the -Qt debug window of v0.9.0.0-gd6e0e17-beta (64-bit):

    • decoderawtransaction with "hex-of-unsigned-transaction* worked fine.
    • decoderawtransaction with hex-of-signed-transaction failed with error "TX decode failed (code -22)". I noticed that the input textbox only allows a text length of 32767 characters at most.
    • sendrawtransaction with hex-of-signed-transaction failed for the same reason.

    Then I tried to broadcast the transaction via RPC:

    • decoderawtransaction with hex-of-signed-transaction worked.
    • sendrawtransaction with hex-of-signed-transaction failed with the error "TX rejected (code -22)", if I remember correctly. I'm unable to replicate the error, because I already broadcasted the transaction otherwise.

    The same problem appeared on Eligius' pushtx box.

    I was able to broadcast the transaction successfully via the console of Electrum v1.9.8 (connected to electrum.no-ip.org:50002).

    Fetching the broadcasted transaction with "getrawtransaction 16a41567e402b9d6fdede7f56eabf2ca64036b9c4b95f063c27bd5713ca72e74" works like a charm both in -Qt as well as via RPC.

  2. laanwj added the label GUI on Mar 19, 2014
  3. laanwj commented at 8:28 AM on March 19, 2014: member

    One-line textedits can't handle that much data.

    It's possible to increase the limit (through http://qt-project.org/doc/qt-4.8/qlineedit.html#maxLength-prop ). But the performance for such long lines is terrible either way. GUI toolkits aren't meant for this.

    I suggest submitting such large transactions through RPC directly.

  4. jonasschnelli commented at 8:56 PM on January 9, 2015: contributor

    I also think it's a debug console and large amount of text (even real stuff) needs to go in over bitcoin-cli or another RPC client.

    Can be closed IMO.

  5. laanwj closed this on Jan 10, 2015

  6. MarcoFalke locked this on Sep 8, 2021
Labels

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-21 18:15 UTC

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