clear history when using clear button in RPC console #1767

pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:RPCCon_clear_history changing 1 files +3 −2
  1. Diapolo commented at 7:45 AM on August 31, 2012: none
    • current code does not clear history, when using the clear button, this is added
    • remove an unused variable
  2. laanwj commented at 7:53 AM on September 1, 2012: member

    I'm not entirely sure about clearing history. When clearing screen in a terminal (ctrl-L), the history is not cleared.

    Then again I suppose clearing history in this case can help a bit with privacy, so it may be wise to do so.

  3. laanwj commented at 9:12 AM on September 1, 2012: member

    BTW the CONSOLE_SCROLLBACK is there to remind that there is currently no scrollback limit. If you use the console very long without clearing, you can theoretically exhaust resources. Maybe this can be solved using QTextDocument::setMaximumBlockCount (but I somehow remember there was a counter-intuitive relation between the number of text document blocks and messages).

  4. Diapolo commented at 12:16 PM on September 1, 2012: none

    I found it annoying to not be able to clear the history, but in the end it is your decission :). I could add a comment in ToDo to remind there is currently no scrollback limit?

  5. clear history when using clear button in RPC console
    - current code does not clear history, when using the clear button, this
      is added
    - remove a currently unused variable but add a TODO comment
    af7b88f29f
  6. Diapolo commented at 7:27 AM on September 5, 2012: none

    @laanwj Do you consider this a 0.7 patch? I updated it to reflect in a comment that we currently don't have a scrollback limit.

  7. BitcoinPullTester commented at 5:16 PM on September 5, 2012: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/af7b88f29fba5d1db109a03dd6e5282fd9da825d for binaries and test log.

  8. gmaxwell commented at 5:19 PM on September 5, 2012: contributor

    A little bit of a layering violation; but one possibility here would be to replace private keys and passphrases in the history with /SECRET OMITTED/ or hashmarks or whatever.

  9. Diapolo commented at 8:05 PM on September 5, 2012: none

    @gmaxwell I really had no privacy concern at first when opening this, I was just annoyed that the Up-/Down-Key history could not be deleted ^^. I'm not sure about your idea, it is for sure some work and I also would like to be able to still do copy and paste (when not using the clear button).

  10. laanwj commented at 5:30 AM on September 8, 2012: member

    @gmaxwell good idea, I guess this could be best done with a list of commands and parameter positions that contain secrets that should be "censored". Secrets nested deep in JSON data structures are too much bother IMO.

  11. Diapolo commented at 11:05 AM on September 8, 2012: none

    I'm not sure if I understand that discussion in the light of my small pull ;). When giving bitcoind commands they appear in the shell history, too, no?

  12. laanwj commented at 11:25 AM on September 8, 2012: member

    I'm not sure if I understand that discussion in the light of my small pull

    It'd be even better if the user would not have to think about manually clearing the history after handling secrets. That doesn't exclude being able to manually clear it, of course.

    When giving bitcoind commands they appear in the shell history, too, no?

    Yes, but how is that an argument for being just as insecure?

  13. Diapolo commented at 7:23 AM on September 11, 2012: none

    If this one is of no interest just close it. But perhaps we can merge it for RC3 otherwise?

  14. laanwj commented at 7:36 AM on September 11, 2012: member

    I'm fine with merging this but it will be after 0.7.0 final.

  15. Diapolo commented at 5:49 AM on October 12, 2012: none

    @laanwj Can you still merge this for 0.7.1?

  16. jgarzik commented at 2:44 AM on November 16, 2012: contributor

    ping @laanwj

  17. laanwj referenced this in commit 0c42ee8130 on Nov 16, 2012
  18. laanwj merged this on Nov 16, 2012
  19. laanwj closed this on Nov 16, 2012

  20. laudney referenced this in commit 98a689ab2b on Mar 19, 2014
  21. svost referenced this in commit ce035e7bc7 on Dec 3, 2016
  22. svost referenced this in commit 1b05f26482 on Dec 3, 2016
  23. underdarkskies referenced this in commit 599a771bcf on Jul 3, 2018
  24. underdarkskies referenced this in commit 9648c47e6a on Jul 6, 2018
  25. underdarkskies referenced this in commit 5fe2283289 on Jul 6, 2018
  26. underdarkskies referenced this in commit a387f968cf on Jul 6, 2018
  27. underdarkskies referenced this in commit 1715ece29b on Jul 7, 2018
  28. underdarkskies referenced this in commit b9622224ee on Jul 7, 2018
  29. underdarkskies referenced this in commit 7d36d40e1c on Jul 7, 2018
  30. underdarkskies referenced this in commit 4cecaa019c on Jul 10, 2018
  31. 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-21 18:16 UTC

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