Remind developers that disablewallet=1 should always work #13677

pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2018/07/disable-wallet changing 1 files +2 −0
  1. Sjors commented at 2:56 PM on July 16, 2018: member

    A user may configure disablewallet=1 for instance to prevent a wallet from accidentally being created (which could lead to confusion as to what to backup).

    Since #13059 a user might also use that option to prevent someone with RPC access from dynamically loading a wallet there're not supposed to.

    The most rigorous way to do the above is to compile with --disable-wallet.

    As of #13112 unknown config arguments throw an error. So the user in the above scenario would have to remove this line. But then later if they download a new binary with wallet support compiled, they might forget to add it back. For that reason I believe disablewallet=1 should always be allowed.

    Although unknown config arguments throw an error, the wallet interface added in #10762 includes a dummy wallet to handle --disable-wallet. Part of this dummy wallets adds disablewallet and other wallet parameters to the list of hidden params; those aren't shown in help, but their presence won't throw an error. This might change in the some future refactor though

    So I added a comment that hopefully prevents a future refactor from causing disablewallet=1 to throw when compiled with --disable-wallet.

  2. Remind developers that disablewallet=1 should always work 262bdcb9b5
  3. MarcoFalke added the label Docs on Jul 16, 2018
  4. promag commented at 8:29 PM on July 16, 2018: member

    AFAIU the test https://github.com/bitcoin/bitcoin/blob/master/test/functional/wallet_disable.py would fail if there was such refactor. However this test is not executed because:

    https://github.com/bitcoin/bitcoin/blob/a2dbe2a108add34a532b0b8df44dd27bf59b10cd/test/functional/test_runner.py#L240-L243

    WDYT about improving this?

    Otherwise utACK 262bdcb.

  5. sipa commented at 1:28 AM on July 17, 2018: member

    Perhaps we can make compiling with --disable-wallet imply: (a) default for GetArg("-disablewallet") becomes true (b) throw an error when -disablewallet=0 is specified

  6. Sjors commented at 8:03 AM on July 17, 2018: member

    I forgot that Travis runs the functional test suite with --disable-wallet as well: https://github.com/bitcoin/bitcoin/blob/master/.travis.yml#L40

    Will look into @promag & @sipa's suggestions, which should make this more robust than merely a comment.

  7. DrahtBot commented at 9:00 PM on September 7, 2018: member

    <!--5d09a71f8925f3f132321140b44b946d-->The last travis run for this pull request was 53 days ago and is thus outdated. To trigger a fresh travis build, this pull request should be closed and re-opened.

  8. DrahtBot closed this on Sep 7, 2018

  9. DrahtBot reopened this on Sep 7, 2018

  10. MarcoFalke commented at 6:19 PM on September 9, 2018: member

    I forgot that Travis runs the functional test suite with --disable-wallet as well: https://github.com/bitcoin/bitcoin/blob/master/.travis.yml#L40

    This is not (yet) true. See https://github.com/bitcoin/bitcoin/pull/14180

  11. MarcoFalke commented at 6:19 PM on September 9, 2018: member

    I think this can be closed?

  12. Sjors commented at 7:37 AM on September 10, 2018: member

    @MarcoFalke #14180 covers progag's suggestion, but I still need to implement sipa's suggestion.

  13. MarcoFalke added the label Up for grabs on Nov 7, 2018
  14. MarcoFalke commented at 4:20 PM on November 7, 2018: member

    Please let me know when you want to continue working on this, so the pull request can be re-opened.

  15. MarcoFalke closed this on Nov 7, 2018

  16. MarcoFalke locked this on Sep 8, 2021
  17. fanquake removed the label Up for grabs on Aug 4, 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: 2026-04-14 09:15 UTC

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