Could not enter decoderawtransaction command equal or larger than 32KB in Bitcoin-Qt console window #7599

issue johnjacksonbtc openend this issue on February 25, 2016
  1. johnjacksonbtc commented at 5:59 pm on February 25, 2016: none

    I am using Bitcoin Core 0.12.0 Windows (zip) x64 version downloaded from https://bitcoin.org/en/download and with -txindex option. I received some unconfirmed bitcoins with this transaction. I was able retrieve it using getrawtransaction. But it gets truncated when entered into GUI textbox for decoderawtransaction command. File attached below.

    98394ab84c8c1c1194a3e40523186677d710bd28a986bc1eb65963d0a57dcf30-000.txt

  2. johnjacksonbtc commented at 6:24 pm on February 25, 2016: none
    We could additionally stress test Bitcoin-Qt GUI with largest transaction ever mined bb41a757f405890fb0f5856228e23b715702d714d59bf2b1feb70d8b2b4e3e08.txt
  3. jonasschnelli added the label Bug on Feb 25, 2016
  4. jonasschnelli added the label GUI on Feb 25, 2016
  5. laanwj commented at 4:09 pm on March 1, 2016: member

    This is a known issue. Qt, the library that is used for the GUI, used to become unusably slow with long lines in input fields. Apparently an safety measure now prevents the string from growing further. I don’t think that’s Qt specific GUIs aren’t really meant to handle these amounts of data.

    I’d recommend using bitcoin-cli and -server.

  6. jonasschnelli commented at 4:12 pm on March 1, 2016: contributor
    I agree with @laanwj. A GUI is probably not meant to paste in a 32kb plaintext. A such use-case could be handled by a “File Open” dialog (open a hex/text/bin/json file). But this seems not to be a priority.
  7. jonasschnelli added the label Priority Low on Mar 1, 2016
  8. jonasschnelli removed the label Bug on Mar 1, 2016
  9. laanwj commented at 4:19 pm on March 1, 2016: member

    Interestingly, 32kB of text isn’t any kind of problem if it’s distributed over multiple lines in a multi-line editor widget.

    I recommended bitcoin-cli above but just realized that there you have to be careful; I’m fairly sure shells, or terminals, don’t support such long lines either. Storing it in an intermediate variable would work:

    0TXHEX=$((bitcoin-cli getrawtransaction HEX))
    1bitcoin-cli decoderawtransaction $TXHEX
    

    Would be nice if the debug console supported intermediate variables, I guess…

  10. laanwj removed the label Priority Low on Dec 6, 2017
  11. adamjonas commented at 1:24 am on April 29, 2020: member
    Believe a potential GUI solution to this was introduced by #7783 where a user can insert the output of a previous command into a new one. Alternatively, bitcoin-cli and -server could be used as recommended above. Can this be closed?
  12. MarcoFalke closed this on Apr 29, 2020

  13. MarcoFalke locked this on Feb 15, 2022

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-07-05 22:12 UTC

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