[init, wallet] ParameterInteraction() iff wallet enabled #8494

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1608-initWalletParamInt changing 1 files +1 −1
  1. MarcoFalke commented at 6:43 AM on August 10, 2016: member

    This is only required when the wallet is enabled.

  2. [init] ParameterInteraction() iff wallet enabled fa5d276c90
  3. MarcoFalke added the label Wallet on Aug 10, 2016
  4. laanwj commented at 6:53 AM on August 10, 2016: member

    Yes, that makes some sense.

    Although in the end it depends on where we want to handle wallet enabled/disabled, or "which and how many wallets to load" - if we want to handle that externally in the wallet module (if compiled in) then this is a move the wrong way around.

  5. MarcoFalke commented at 7:16 AM on August 10, 2016: member

    @laanwj I am fine with either. I just feel we should have it in at least in one place.

  6. MarcoFalke commented at 1:10 PM on August 24, 2016: member

    Trivial PR. Does this require more review?

  7. jonasschnelli commented at 1:24 PM on August 24, 2016: contributor

    I think this PR is ready. Though, long term, we should "modularize" CWallet. Which means, init.cpp doesn't need to know about the wallet-disable state.

    The only hooks in init.cpp should probably be:

    • CWallet::GetWalletHelpString()
    • CWallet::ParameterInteraction()
    • CWallet::Verify()
    • CWallet::InitLoadWallet()

    and maybe a

    • CWallet::CleanUp() in the destructor or shutdown logic.

    This should probably the "module pattern" that could also be used for TxIndex, Miner, Stats-Module, etc.

  8. MarcoFalke commented at 7:48 AM on September 19, 2016: member

    @laanwj Anything holding this back?

  9. sipa approved
  10. sipa commented at 9:16 AM on September 19, 2016: member

    utACK

  11. laanwj commented at 9:38 AM on September 19, 2016: member

    Which reminds me: we need tests for parameter interaction (especially the privacy relevant settings). utACK fa5d276

  12. laanwj merged this on Sep 19, 2016
  13. laanwj closed this on Sep 19, 2016

  14. laanwj referenced this in commit a5b20edd3d on Sep 19, 2016
  15. MarcoFalke deleted the branch on Sep 19, 2016
  16. codablock referenced this in commit 5512e528db on Sep 19, 2017
  17. codablock referenced this in commit 9432e1904f on Jan 11, 2018
  18. andvgal referenced this in commit 3b29e9b6a1 on Jan 6, 2019
  19. MarcoFalke 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-17 06:15 UTC

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